Could anyone please explain and direct me link or resource to read about how the kafka consumers works in below scenarios.
One consumer group with 5 consumers and topic with 3 partitions (how kafka decides )
One Consumer group with 5 consumers and topic with 10 partitions ( how kafka share load)
Two consumer group with 1 consumer each and kafka cluster of 2 servers where one topic is partitioned between node 1 and node 2 , how duplications can be avoided when consumers from different groups subscribed to one partition.
The above may not a best practice when configuring kafka , but i need to know how it handled.
Thanks in Advance.