In the end you create a new consumer group. That's totally fine.
The old consumer group will still "exist", ie, the committed offsets for the group are still there, until they will be eventually purged by the brokers (I think the default is 7 days to keep the metadata of consumer groups, after a group becomes empty/stale).
It's configurable how long to keep it -- in general, it's desirable to keep it for some time, as an app could be offline for a while but come back online later and resume where it left off.
HTH -Matthias On 7/6/24 10:56 AM, Mohamed Basid wrote:
Hello, Let us consider one application in a consumer group consuming events from Kafka in live. Just like any code change, I changed the consumer group name of the application to a new group. I understand my application might start reading from the beginning offset or the latest based on the setting. Is there any under-the hood problem for the application or the earlier consumer group for doing the change? Any resource to read about it? Thanks Basid