The cryptic publishing order from a restricted data stream to pub / sub

Is there a way to publish messages from the restricted data stream pipeline (batch mode) to PubSubIO.Write in a deterministic order so that they are delivered in that order, at least approximately. For example. using timestamp or natural / ordered ordering.

+4
source share
1 answer

Cannot deterministically order data written to PubSubIO.Write. Even if the messages were published in Pub / Sub in order, your subscribers will not receive them, as Cloud Pub / Sub does not have guarantee guarantees. In general, it is useful to avoid ordering as much as possible with Pub / Sub, although there are some methods to deal with it. I recommend reading the recently published Message Ordering document .

+3
source

Source: https://habr.com/ru/post/1629419/


All Articles