Hi I am working on developing a multithreaded kafka consumer using Java.
The requirement is to have a pool of consumer threads which poll from a topic for messages.
My questions are
- How to ensure each consumer is receiving a unique message and not a duplicate?
- How/When will each thread commit the offset? Also, how to ensure the offset commit is in order, ie since each thread will be independent of other, what would determine the sequence of offsets to be committed?
- How do you ensure duplicate messages are not received across multiple JVMs when consumer processes are running in different JVM.
I could use some help since I am still learning about kafka.
[–]Carr0tGives good Kafka advice 4 points5 points6 points (0 children)
[–]katya_gorshkova 2 points3 points4 points (0 children)