zalando / nakadi

A distributed event bus that implements a RESTful API abstraction on top of Kafka-like queues
https://nakadi.io
MIT License
952 stars 292 forks source link

[Preview] Handle `OutOfOrderSequenceException` in Kafka producer #1539

Closed a1exsh closed 1 year ago

a1exsh commented 1 year ago

We've removed the special exception handling recently, but if we are going to enable retries (and use idempotent producer to avoid ordering violations), we need to be prepared to handle this exception.

a1exsh commented 1 year ago

After thinking longer, it looks like we do not need special handling of this error after all, since we are not calling Producer#send() again with the same records, so no reordering should happen.