Processing failures
As part of the at-least-once guarantee for Cloud Pub/Sub message delivery, when a service fails to acknowledge a message for any reason, that message will be redelivered continuously for up to 7 days. As a result, it is possible for subscriptions to fill up with messages that cannot be processed.
Consider a scenario where a subscriber expects a message body to contain a known serialized entity, and fails to acknowledge messages that do not conform to expectations. Over time, the ratio of messages that cannot be processed will continue to increase, potentially dwarfing any valid messages. In such a scenario, the subscriber will receive (and fail to acknowledge) an ever-growing backlog of bad messages in order to process ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access