绑定中单个通道的多重消费者组和目的地
因此,我试图为多个主题目的地
和消费者组
提供一个函数
。但是我坚持语法。我正在尝试实现以下操作,但不确定是否可能,如果是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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论