Trying to create a subscription with ordering enabled and a dead letter policy and getting the error:
A subscription cannot have both message ordering enabled and a dead letter policy configured.
Why are they mutually exclusive?
Moreover if dead lettering is disabled for a subscription the messages don't include the delivery_attempt field so I can't even do dead lettering myself when handling a message. That's quite unusable.
Duplicate of:
Google PubSub ordered Messages to Dead Letter Queue process
As per your concern about not being able to access your delivery_attempt counter because of the conflict with message ordering, please see the following post for some workaround:
Google Cloud Pub/Sub Retry Count
2.1m questions
2.1m answers
60 comments
57.0k users