请问这个翻译是平稳的还是平均的我自己不能确定

Failover

In Failover type, multiple consumers can attach to the same subscription. A master consumer is picked for non-partitioned topic or each partition of partitioned topic and receives messages. When the master consumer disconnects, all (non-acknowledged and subsequent) messages are delivered to the next consumer in line.

For partitioned topics, broker will sort consumers by priority level and lexicographical order of consumer name. Then broker will try to evenly assigns topics to consumers with the highest priority level.

“ evenly assigns”平均分配,还是平稳分配呢?

如果是平均分配?是怎么个平均法??不明白内部的“平均算法”,感谢。

可以理解为平均随机分配。另外,可以在创建 consumer 时用 priorityLevel 设置更高的优先级,优先级高的 consumer 优先被分配。

@labuladong
这个平均随机分配是怎么分配的,可以举一个例子吗,我不太懂这个分配的逻辑,非常感谢。