Kafka With Spring
In the last blog we learned how to implement kafka consumer-publisher using plain kotlin. In this blog we’ll walk through some code to implement the same using Spring.
Spring makes the implementation rather simple. We need to create a configuration class and then we can add all our code there.
Setting up the configuration class We need two annotations for this Configuration and EnableKafka. We can also take some time to pick the value for bootstrapAddress and topic name from application.
read more