Manish Kumar
Manish Kumar

Reputation: 10502

Number of group limitation in kafka

Is there any limitation on number of group that a kafka should have ? Let say a user add comment for a post. So for each post I wanted to create a group so that whenever a new comment come i could notify other user who commented on that post.

Or one solution that is coming in my mind is to subscribe to a partition within a topic post

post/<post id>/<user id>

Upvotes: 2

Views: 6547

Answers (2)

Nether
Nether

Reputation: 1160

As of Kafka 2.2, there is a configurable limit on the number of consumers you can have in a consumer group. You can configure it with group.max.size

Upvotes: 1

Hemanth Malla
Hemanth Malla

Reputation: 435

Assuming that you are talking about consumer groups, there is no explicit limit on how many consumer groups you can have. The consumer offsets are saved in zookeeper or in kafka itself based on the version you are using. So, you are only limited by the limitations of zookeeper and operating system you are using.

Upvotes: 5

Related Questions