绑定中单个通道的多重消费者组和目的地

发布于 2025-02-09 14:32:50 字数 683 浏览 2 评论 0原文

因此,我试图为多个主题目的地消费者组 提供一个函数。但是我坚持语法。我正在尝试实现以下操作,但不确定是否可能,如果是application.yl

function : handleEvent

topics: topicAEvent, topicBEvent, topicCEvent
consumer group : AEventConsumergroup, BEventConsumergroup, CEventConsumerGroup

application.yml

spring:
 cloud:
  function:
   definition: handleEvent;
  stream:
   kafka:
    bindings:
     handleEvent-in-0:
      group: AEventConsumergroup, BEventConsumergroup, CEventConsumerGroup
      destination: topicAEvent, topicBEvent, topicCEvent

是否有办法具有一个可以为多个KAFKA主题和消费者组提供消费者BEAN的单个功能?

So I am trying to have a single function for multiple topic destinations and consumer groups. However I am stuck with the syntax. I am trying to achieve the below, but not sure if that's possible and if it is then what will be the syntax in the application.yml

function : handleEvent

topics: topicAEvent, topicBEvent, topicCEvent
consumer group : AEventConsumergroup, BEventConsumergroup, CEventConsumerGroup

application.yml

spring:
 cloud:
  function:
   definition: handleEvent;
  stream:
   kafka:
    bindings:
     handleEvent-in-0:
      group: AEventConsumergroup, BEventConsumergroup, CEventConsumerGroup
      destination: topicAEvent, topicBEvent, topicCEvent

Is there a way to have a single function that can provide Consumer Bean for multiple kafka topics and consumer groups?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文