ESEN

← Fine print by exam

Google Cloud · Professional

PDE · Professional Data Engineer

Google Cloud Certified - Professional Data Engineer

Scale-to-zero async worker with dead-letter

IAM● verified 34 days ago◌ no external reviewer

Dead-lettering doesn't work without permissions for the Pub/Sub service agent

The forwarder to the dead-letter topic is service-<number>@gcp-sa-pubsub.iam.gserviceaccount.com, and it needs publisher on the dead-letter topic and subscriber on the source subscription. Without those roles the policy is configured but messages never move. The module grants both.

⚑ Report outdated

See it in the pattern →

Reliability● verified 34 days ago◌ no external reviewer

A dead-letter topic without a subscription drops messages

In Pub/Sub a topic doesn't store messages by itself: they're retained per subscription. If the dead-letter topic has no subscription created before messages arrive, they're lost. The minimum delivery attempts before forwarding is 5 (maximum 100).

⚑ Report outdated

See it in the pattern →

Reliability● verified 34 days ago◌ no external reviewer

With push, the ack is the HTTP response and must arrive within the ack deadline

Pub/Sub considers the message processed when the endpoint responds with 102, 200, 201, 202 or 204; any other code is a nack and Pub/Sub resends the message. The same happens if the worker takes longer than the ack deadline: Pub/Sub redelivers it while it's still running.

⚑ Report outdated

See it in the pattern →

See it in the pattern →