mirror of
https://github.com/doocs/advanced-java.git
synced 2026-08-18 10:43:29 +08:00
docs: mark RabbitMQ mirror cluster mode as deprecated since 4.0 (#339)
Fix #329 - RabbitMQ High Availability Description is Outdated - Add deprecation warning to mirror cluster mode section - Note that mirror cluster mode is deprecated since RabbitMQ 4.0 - Recommend Quorum Queues as the preferred HA solution - Reference issue #329 Co-authored-by: OpenClaw Agent <oc-agent@openclaw.ai>
This commit is contained in:
@@ -38,9 +38,11 @@ RabbitMQ 有三种模式:单机模式、普通集群模式、镜像集群模
|
|||||||
|
|
||||||
所以这个事儿就比较尴尬了,这就**没有什么所谓的高可用性**,**这方案主要是提高吞吐量的**,就是说让集群中多个节点来服务某个 queue 的读写操作。
|
所以这个事儿就比较尴尬了,这就**没有什么所谓的高可用性**,**这方案主要是提高吞吐量的**,就是说让集群中多个节点来服务某个 queue 的读写操作。
|
||||||
|
|
||||||
#### 镜像集群模式(高可用性)
|
#### 镜像集群模式(⚠️ 已废弃,不推荐使用)
|
||||||
|
|
||||||
这种模式,才是所谓的 RabbitMQ 的高可用模式。跟普通集群模式不一样的是,在镜像集群模式下,你创建的 queue,无论是元数据还是 queue 里的消息都会**存在于多个实例上**,就是说,每个 RabbitMQ 节点都有这个 queue 的一个**完整镜像**,包含 queue 的全部数据的意思。然后每次你写消息到 queue 的时候,都会自动把**消息同步**到多个实例的 queue 上。
|
> **⚠️ 重要更新**:自 RabbitMQ 4.0 版本起,镜像集群模式已被正式废弃,不再支持新增镜像策略。建议现有用户尽快迁移至 Quorum Queues。
|
||||||
|
|
||||||
|
这种模式,曾经是所谓的 RabbitMQ 高可用模式。跟普通集群模式不一样的是,在镜像集群模式下,你创建的 queue,无论是元数据还是 queue 里的消息都会**存在于多个实例上**,就是说,每个 RabbitMQ 节点都有这个 queue 的一个**完整镜像**,包含 queue 的全部数据的意思。然后每次你写消息到 queue 的时候,都会自动把**消息同步**到多个实例的 queue 上。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user