【发布时间】:2022-01-06 03:23:34
【问题描述】:
I have referred this. but, this is an old post so i'm looking for a better solution if any.
我有一个包含“userActivity”数据的输入主题。现在,我希望根据 userInterest、userSubscribedGroup、userChoice 等收集不同的分析结果,这些分析结果来自同一个 Kafka-streams-application 的不同输出主题。
你能帮我实现这个吗... ps:这是我第一次使用 Kafka-streams,所以我不知道还有其他选择。
编辑:
有可能一条记录匹配多个条件,在这种情况下,相同的记录也应该进入这些输出主题。
if(record1 matches criteria1) then... output to topic1;
if(record1 matches criteria2) then ... output to topic2;
and so on.
note: i'm not looking elseIf kind of solution.
【问题讨论】:
标签: apache-kafka apache-kafka-streams spring-kafka