-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Milestone
Description
It's not a bug report, more like a consultancy request... maybe an idea for the feature.
While playing with kafka-console-consumer I've spotted that sometimes after consumer rebalancing same message is received the second time. Checked google, read the article:
https://cwiki.apache.org/confluence/display/KAFKA/Idempotent+Producer
As I understand, it's not a bug, but kind of limitation.
But we all know that in many cases message uniqueness is important & same message should not be processed second time. So is there any already implemented approach to achieve such uniqueness?
As of now, I see the next quite easy mechanism, which may help:
- On producer side: each message should be wrapped into a "holder" object with unique id (UUID).
- On consumer side: each message Id should be compared with the previous one (or ones) - if such an id is already known, the received message should be logged & discarded.
What do you think?
Metadata
Metadata
Assignees
Labels
No labels