4 ms·
https://pulsar.apache.org/docs/en/concepts-messaging/#ordering-guarantee https://pulsar.apache.org/docs/en/concepts-messaging/#orderi... Basically, they have t
by dikei 6y ago
https://pulsar.apache.org/docs/en/concepts-messaging/#ordering-guarantee https://pulsar.apache.org/docs/en/concepts-messaging/#orderi...
Basically, they have the same ordering guarantee as Kafka: FIFO is guaranteed for messages from the same producer, within the same partition. If you need producer-level FIFO, then you can only use 1 partition.
There's no ordering guarantee for messages coming from different producer.
- eis 6y agoTo add: In a distributed system, an ordering guarantee by producer (and optionally partition "key" which in the end is like an extension of the topic key) is pretty much all you need and all you can get. If you have two producers then how would one decide which one sent the message first? Go by some timestamp? Clocks are unreliable for these purposes so it comes down to consesus. And letting the queue decide which one came first is equivalent. Once a message got acknowledged by the queue, ordering cannot change anymore.