I have a service with an autoscaler and each instance needs to be in a separate consumer group, I've achieved it by making a random consumer group name group-id: my-service-${random.uuid}
. I want to know what happens to a consumer group if all consumers are gone. I've noticed in Confluent platform that I have many consumer groups without any consumers.
For how long consumer groups without any consumers can exist?
How can I configure consumer groups to be removed after for example 5 minutes after the service is removed (I want the group to be removed not only the offset removed)?