卡夫卡消费者与春季kafka听众

发布于 2025-02-13 22:25:07 字数 89 浏览 0 评论 0原文

我是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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

十年九夏 2025-02-20 22:25:07

在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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文