[英]Azure Event Hub Consumer Groups
I get that consumer groups will retrieve messages from the Event Hubs however;但是,我知道消费者组将从事件中心检索消息;
Assume I have 1 producer, 32 partitions and 2 CG's, CG 1 will use the data in a different source but needs the same message.假设我有 1 个生产者、32 个分区和 2 个 CG,CG 1 将使用不同源中的数据,但需要相同的消息。
Does a message in the queue replicate across all 32 partitions so CG1 & CG2 will retrieve the same sequenced data?队列中的消息是否在所有 32 个分区中复制,因此 CG1 和 CG2 将检索相同的排序数据?
New to this so thanks for any help!新手,所以感谢您的帮助!
Both consumer groups will receive the same data.两个消费者组将收到相同的数据。 They both have an independent view of that data.
他们都对这些数据有独立的看法。 That means that CG1 might be further in processing the messages then CG2.
这意味着 CG1 可能会比 CG2 进一步处理消息。 If, for example, CG1 processes message in memory it might be going through the messages faster than CG2 that is doing a lot of I/O to handle the messages.
例如,如果 CG1 处理 memory 中的消息,它可能会比 CG2 更快地处理消息,因为 CG2 执行大量 I/O 来处理消息。 But they will both have access to all the data.
但他们都可以访问所有数据。
Does this make sense to you?你能理解这个吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.