Hi Bala, Partitions are what give Kafka parallelism and allow it to scale. Every message exists in exactly one partition.
Replicas are exact copies of partitions on different machines. They allow Kafka to be reliable and not lose messages if a machine dies. So the answers are: 1. No, a message is sent to one partition. 2. Each partition is replicated separately, so it doesn't make sense to replicate from one partition to another. 3. Depends whether any parts of the cluster are currently in a failed state, see http://kafka.apache.org/documentation.html#replication Martin On 27 Feb 2014, at 06:17, Balasubramanian Jayaraman (Contingent) <balasubramanian.jayara...@autodesk.com> wrote: > Hi, > > I have a doubt regarding to Partition and replica. What is the difference > between them? > I created a topic "test1" with 5 partition and 3 replicas. I am sending a > message to the topic "test1". I see that different partitions are present in > the different Kafka brokers. > Some questions on this topic > > 1. Will that message be sent to all the partitions? > > 2. When it will be replicated to all the partitions? > > 3. When it will be replicated to all the replicas? > > Thanks > Bala