I want to use Kafka with Spring Boot and with Avro schemas.
But I'm stucked on 'What is the difference between those 3 listeners?'.
There are 3 possibilities to create listeners: annotate a method with - @KafkaListener
, @StreamListener
or @ServiceActivator
. Seems like all of them are listening for incoming events but I cannot see/find difference between those solutions.
- What is the difference between those three?
- What are prons and cons of each solution?
- Which fits more for purpose of using Avro?