I’m consuming messages from a Pubsub topic that is populated by Cloud Storage Pubsub Notifications (https://cloud.google.com/storage/docs/pubsub-notifications). .)I see that the messages are fairly out of order, for file operations that happened soon after each other. I tried creating a Subscription that has “Message Ordering” enabled, but the messages don’t seem to have an ordering key in them (I used the message.getOrderingKey() method).
Are Cloud Storage Pubsub Notification messages expected to have an Ordering Key in them?
I found out about Ordering Keys through this good article by Google Cloud Community: https://medium.com/google-cloud/google-cloud-pub-sub-ordered-delivery-1e4181f60bc8