[英]Spring kafka multiple consumers result combination
I have producer which produces some messages(10 for example). 我有一个产生一些消息的生产者(例如10个)。 There are n partitions and a consumer group with n consumers. 有n个分区和一个具有n个使用者的使用者组。 Kafka system will distribute the messages among the consumers. Kafka系统将在消费者之间分发消息。 How do I combine the messages of all the consumers in one place so that I have 10 messages. 如何将所有消费者的消息合并到一个位置,这样我就有10条消息。 I am using Kafka with Spring. 我在Spring上使用Kafka。
创建一个只有一个使用者的使用者组,然后您将从一个位置的所有分区中获得记录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.