Reputation: 1516
I am new to kafka and I am confused with kafka consumer and kafka listener. When I create new listener which listens existing topic, does it mean new consumer will be created ? What is the differences exactly between creating listener and consumer?
Upvotes: 0
Views: 1396
Reputation: 7218
In the Kafka world, there's no such thing as a Kafka listener, there is only Kafka consumer, Kafka producer, Kafka admin client... These are part of client libraries that the Kafka project provides, available both in java and in python.
KafkaListener
is a feature of the Spring library, which behind the scene delegates to the Kafka consumer.
Upvotes: 4