卡夫卡消费者与春季kafka听众
我是Kafka的新手,我与Kafka消费者和Kafka听众感到困惑。当我创建聆听现有主题的新侦听器时,是否意味着将创建新的消费者?创建听众和消费者之间的差异是什么?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在Kafka世界中,没有Kafka听众之类的东西,只有Kafka消费者,Kafka生产商,Kafka Admin Client ...这些是Kafka Project提供的客户库的一部分,可在Java和Python中获得。
kafkalistener
是Spring库的功能,Spring库是在现场委托Kafka消费者的背后。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.