There is a similar question asked below:
Can a single Spring's KafkaConsumer listener listens to multiple topic?
So i now understand that i can provide an array of string to the topics parameter of the KafkaListener annotation, however i want to know the following:
- How do i get the topic names from a properties file as an array of strings?
- How does this reading from multiple topics affect the offsets? Would the clients (spring kafka) maintain offsets per topic?