[英]How do you read from a Kafka input topic in Spring-Apache-Kafka-Streams and produce different analytics on specific output topics?
I have referred this. 我已经提到了这个。 but, this is an old post so i'm looking for a better solution if any.
但是,这是一篇旧帖子,所以我正在寻找更好的解决方案(如果有的话)。
I have an input topic that contains 'userActivity' data.我有一个包含“userActivity”数据的输入主题。 Now I wish to gather different analytics based on userInterest, userSubscribedGroup, userChoice, etc... produced to distinct output topics from the same Kafka-streams-application.
现在,我希望收集基于 userInterest、userSubscribedGroup、userChoice 等的不同分析,这些分析来自同一个 Kafka-streams-application 的不同 output 主题。
Could you help me achieve this... ps: This my first time using Kafka-streams so I'm unaware of any other alternatives.你能帮我实现这个... ps:这是我第一次使用Kafka-streams,所以我不知道任何其他选择。
For dynamically choosing which topic to send to at runtime based on each record's key-value pairs.用于根据每条记录的键值对在运行时动态选择要发送到的主题。 Apache Kafka version 2.0 or later introduced a feature called: Dynamic routing
Apache Kafka 2.0或更高版本引入了一个特性叫做: 动态路由
And this is an example of it: https://kafka-tutorials.confluent.io/dynamic-output-topic/confluent.html这是一个例子: https://kafka-tutorials.confluent.io/dynamic-output-topic/confluent.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.