There is no built in mechanism to do this in Apache Kafka but if you can write 
consumer 1 and consumer 2 to share a common external offset storage then you 
may be able to build the functionality you seek.

-hans



> On Nov 5, 2016, at 3:55 PM, kant kodali <kanth...@gmail.com> wrote:
> 
> Sorry there is a typo. here is a restatement.
> 
> Is there a way to make sure two consumers receive the same message from the
> kafka broker in a atomic way? such that if consumer 1 gets a message
> consumer 2 should also get that message and if  consumer 1 fails for
> whatever reason consumer 2 should also rollback to previous offset (to the
> same offset as consumer 1) or invalidate or something like that. is that
> possible?

Reply via email to