Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
318 views
in Technique[技术] by (71.8m points)

Google Pub/Sub "A subscription cannot have both message ordering enabled and a dead letter policy configured."

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.

question from:https://stackoverflow.com/questions/65516899/google-pub-sub-a-subscription-cannot-have-both-message-ordering-enabled-and-a-d

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...