I have a Kafka consumer service (spring boot). The problem is the topic names are not statically available i.e., not in properties file. The Consumer service has to request for the topic names from other service. I am not sure how to use @KafkaListener(topic="") annotation in this requirement. Appreciate any help.
I have verified this How to create separate Kafka listener for each topic dynamically in springboot? As it is 6 years old thread, just want to check is there anything new approach available using spring kafka listener?