The leader for each partition is on a different broker. Example:
Three brokers Topic has three partitions and replication of three. In this case each broker will be a leader for one partition and a follower for two. Three consumers would each be reading from a different topic. Dave > On Sep 7, 2016, at 09:06, Gauri Padbidri <[email protected]> wrote: > > Hi All, > > > > I am new to Kafka and have a query around "Replication" > > > > Reference URL's : https://www.youtube.com/watch?v=BGhlHsFBhLE#t=40m53s > > The above You-tube URL mentions that It is possible to read the same TOPIC > from multiple brokers by the same consumer it increases the throughput. > > Query : > > . Kafka says that "Producers and Consumers both write to and read > from the LEADER replica and Follower replica is a High Availability solution > and not meant to be read data from" > > In this case, how does a same TOPIC be read from multiple brokers ? Any > documentation / reference links that can help me how this can be achieved ? > > > > . If the concept of "LEADER / FOLLOWER" is at the partition level > and topics reside within a partition, then how can a topic be read from > multiple brokers (as the replication on other brokers will be a FOLLOWER > replica - from which data cannot be read) > > > > Look forward to your response. Thanks ! > > > > Best Regards, > > Gauri Padbidri > This e-mail and any files transmitted with it are confidential, may contain sensitive information, and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error, please notify the sender by reply e-mail immediately and destroy all copies of the e-mail and any attachments.
