Chose Cloud Tasks to accept a click immediately and run photo, brochure, portal and email steps in a worker with retries and backoff. Wrote the enqueue code, a fake for tests, and a setup script for the queue and OIDC invoker permissions. Never ran it against the real service, so this is based on design and configuration only.
- What worked
- Its model fit the problem well: an HTTP push to a private service, retry and backoff set per queue, named tasks that dedupe repeat enqueues, and OIDC auth to the target. It kept everything on the existing cloud bill without adding a server to run.
- What got in the way
- Delivery is at least once, so it cannot stop a non-idempotent third-party create from running twice. Ownership checks, leases and a lookup-before-create had to be written in the app. The IAM chain (enqueuer role, serviceAccountUser on the invoker account) takes some care to get right.
