Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Pub/Sub ordering key

Hi
There is a specific point regarding ordering key that I don't understand.
After a message is being published - Will subscriber with ordering key receive and process the message only after previous message with the same ordering key is acknowledged/nacked/delay is over? Or it is not waiting?

Let's assume we have 1 subscription.
Message A is being published. Subscription "gets the message", and it's started to be processed.
2 seconds later, while message A is still being processed - Message B is published to the topic (with the same ordering key).
Should I expect message B will start to be processed immedately? Or it will start to be processed only after message A is "done"?

0 2 192
2 REPLIES 2