I am running a spring application using spring-Kafka for consumer applications. In Kafka listener, we have autostartup set using SpEL expression. We change this value at runtime to make this expression as false. KafkaListener stops consuming further messages when we change the property.
Question: Is this the correct way to stop polling for further records or should we use kafkaListenerEndpointRegistry and stop the service? What's the difference between these two?
Another one, if I have another application using the same consumer group will all the partitions get reassigned to that application?