Got some info on this, I think this is mostly controlled by acks. The default value of “1” requires an explicit acknowledgement from the partition leader that the write succeeded. The strongest guarantee that Kafka provides is with “acks=all”, which guarantees that not only did the partition leader accept the write, but it was successfully replicated to all of the in-sync replicas.
On Thu, Aug 10, 2017 at 3:20 PM, Sameer Kumar <sam.kum.w...@gmail.com> wrote: > please refer to the following doc. https://cwiki.apache.org/ > confluence/display/KAFKA/Kafka+Replication > > It talks about both the modes, I am not sure of which one is followed by > Kafka. > Also, is there a property to switch between the two. > > -Sameer. > > On Wed, Aug 9, 2017 at 3:24 PM, Manikumar <manikumar.re...@gmail.com> > wrote: > >> Not sure about, what you mean by Asynchronous and Synchronous >> replication. details about replication are here: >> http://kafka.apache.org/documentation/#replication >> >> Kafka producers can choose whether they wait for the message to be >> acknowledged >> by 0,1 or all (-1) replicas by using "acks" config property. >> http://kafka.apache.org/documentation/#design_ha >> >> On Wed, Aug 9, 2017 at 3:03 PM, Sameer Kumar <sam.kum.w...@gmail.com> >> wrote: >> >> > Kafka supports two replication modes: Asynchronous and Synchronous >> > replication. I couldnt find a property that allows you to switch between >> > the two. >> > >> > Could someone please enlighten me on this. >> > >> > -Sameer. >> > >> > >