What is the difference between SQS vs RabbitMQ vs Memphis?
Avatar Idan Asulin
Apr 16, 2023
14 15 16
What is the difference between RabbitMQ vs ZeroMQ vs Memphis?
Avatar Idan Asulin
Apr 16, 2023
10 11 12
What is the difference between Kafka vs ZeroMQ vs Memphis?
Avatar Yaniv Ben Hemo
Apr 16, 2023
2 3 4
What is the difference between Azure Event Hub vs Kafka vs Memphis?
Avatar Idan Asulin
Apr 16, 2023
5 6 7
How does ActiveMQ vs RabbitMQ vs Kafka vs Memphis work?
Avatar Idan Asulin
Apr 16, 2023
7 8 9
What is ActiveMQ vs IBM MQ vs Memphis?
Avatar Yaniv Ben Hemo
Apr 16, 2023
3 4 5
What is IBM MQ?
Avatar Yaniv Ben Hemo
Apr 16, 2023
4 5 6
What is an mq server?
Avatar Idan Asulin
Apr 16, 2023
3 4 5
How does mq messaging take place?
Avatar Idan Asulin
Apr 16, 2023
2 3 4
Can multiple Kafka consumers read same message from the partition
2 3 4
Memphis Approach

This depends on the Group ID. For instance, if you have a topic with 8 partition, and you have 2 consumers with the same group ID, then each of them will read 6 partitions, which means each of them will read a different set of messages. Similarly, if you have 4 consumers in the same group, then each of them will read 2 partitions each, and so on.

However, if you have 2 consumers with different group IDs, then both of them will read all the partitions without any interference from one another. This means that both consumers will read the same set of messages. The same goes for any number of consumers with different group IDs. 

So, consumers within the same group cannot read the same message from a partition, but they can do so if they’re in different groups.

Memphis Approach

A consumer group usually includes multiple clients with the same characteristics or replicas of the same client. A consumer group allows you to control ordering and prevent duplicate processing of messages between the same kind of consumers. So each consumer group receives the same message and inside the group, the message is delivered to only one consumer. So only one consumer per consumer group can read and handle the same message.