If multiple consumers subscribed for a topic and each belong to different Consumer Group, the messages of the topic will
be consumed by all consumers. This is:
Queuing model
Publish-Sunscribe model
Answers
Answered by
0
If multiple consumers subscribed for a topic and each belong to different Consumer Group, the messages of the topic will be consumed by all consumers. This is: Queuing model
- The messages on the topic will be evenly distributed among consumers if each customer is a member of the same consumer group; this is known as a "queuing model." A "publish-subscribe" paradigm, in contrast, requires that each consumer belong to a unique consumer group in order for each client to receive and process each message.
- Multiple partitions may be assigned to the same customer. As a result, several Kafka consumers from a consumer group are not allowed to read the same message from a partition because the rule in Kafka states that only one consumer in a consumer group can be allocated to consume messages from a partition in a topic.
- Customers of Kafka often belong to a consumer group. Each consumer in a group of subscribers to a topic who is a member of the same consumer group will get messages from a distinct subset of the topic's partitions.
- We might have a group of listeners who are interested in various subjects. We can link data across two topics if they have the same key-partitioning scheme and number of partitions.
#SPJ2
Similar questions
Math,
2 months ago
Science,
2 months ago
Math,
2 months ago
Psychology,
5 months ago
English,
5 months ago
World Languages,
10 months ago
Geography,
10 months ago