高可用性はRabbitMQではクラスタリング(複数のノード)とレプリケートされたキュー(ミラーされたキューまたはクォーラムキュー)を使用して、ノード障害時にメッセージを失わずにシステムが稼働し続けることです。HAの仕組みを理解することは、本番環境でのRabbitMQの信頼性を確保するために重要です。
クラスタリング
RabbitMQ CLUSTER → multiple RabbitMQ nodes working together as one logical broker:
→ nodes share metadata (queues, exchanges, bindings, users)
→ distributes connections and load across nodes
⚠️ by default, a queue lives on ONE node → if that node fails, the queue is unavailable
(clustering alone doesn't make queues highly available → need replication)
