简体   繁体   中英

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.

Does a message in the queue replicate across all 32 partitions so CG1 & CG2 will retrieve the same sequenced data?

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. 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. But they will both have access to all the data.

Does this make sense to you?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM