If there are Kafka Consumers running on a server, is it possible to selectively stop the listener beans from outside the application, by a REST service for example??
Assuming you are using spring-kafka (which you tagged), yes; see the documentation.
You can start and stop all or individual listeners using the KafkaListenerEndpointRegistry.
KafkaListenerEndpointRegistry
1.4m articles
1.4m replys
5 comments
57.0k users