I am pulling data from a data base to check if I have the available system resources to process further messages coming from KafkaListener. If I my condition is not met then I want @KafkaListener to pause and when the condition is met, I want @KafkaListener to resume. How do I achieve this in spring Kafka?
Also are there any disadvantages of pausing a consumer for a particular partition?