Consumption Model
URocketMQ supports two consumption models: cluster and broadcast. Please choose according to the actual situation.
Cluster Mode
In cluster mode, consumers in the same consumption group evenly share the messages, and each message will only be consumed by one of them.
Broadcast Mode
In the broadcast mode, all consumers under the same consumption group will receive all messages, and each message will be consumed by all consumers.
Precautions:
- In broadcast mode, the consumption progress is maintained by the client, the probability of repeated consumption is higher than that in cluster mode, and the console does not support the message accumulation view and related alarms in this mode.
- Sequential consumption is not supported in broadcast mode.
- Message position resetting is not supported in broadcast mode.
Based on these points, it is recommended that users prioritize consumption in cluster mode.