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?