- Newest
- Most votes
- Most comments
When deploying an Amazon MQ for RabbitMQ cluster, providing 2 subnets instead of 3 (and consequently 2 AZs instead of 3) does affect the characteristics of the broker deployment, particularly in terms of availability and durability.
In a cluster deployment, Amazon MQ creates a logical grouping of three RabbitMQ broker nodes behind a Network Load Balancer. These nodes share users, queues, and a distributed state across multiple Availability Zones. The default configuration ensures high availability and data durability by replicating data across all nodes in the cluster.
However, when you provide only 2 subnets (and thus 2 AZs), the cluster will still have 3 broker nodes, but they will be distributed across only 2 AZs instead of 3. This means that one AZ will have 2 nodes, while the other AZ will have 1 node. This configuration slightly reduces the overall availability and fault tolerance of the cluster compared to a deployment across 3 AZs.
Regarding your team's assumption:
-
It is correct that the broker nodes are deployed in Amazon's managed infrastructure, not in your VPC. You don't see EC2 instances in your account because Amazon MQ manages these resources.
-
The broker endpoint is indeed made available through a service endpoint, which is resolvable to private network IPs and accessible from the subnets you provide.
-
However, the assumption about having only 2 entry points instead of 3 is not entirely accurate. The cluster will still have a single endpoint provided by the Network Load Balancer, regardless of the number of subnets/AZs used.
-
You are correct that there will still be 3 broker nodes, not just 2, even when using only 2 subnets/AZs.
While using 2 subnets instead of 3 doesn't introduce significant functional limitations, it does slightly reduce the overall fault tolerance and availability of the cluster. For maximum availability and durability, it's recommended to use 3 subnets across 3 AZs when possible. However, if your region or specific requirements limit you to 2 AZs, the cluster will still provide a high level of availability and durability, just not quite as robust as a 3-AZ deployment.
Sources
Deployment options for Amazon MQ for RabbitMQ brokers - Amazon MQ
Amazon MQ for RabbitMQ brokers - Amazon MQ
Amazon MQ Features | Managed Message Broker Service | Amazon Web Services
Amazon MQ FAQs | Managed Message Broker Service | Amazon Web Services
Relevant content
- asked 9 months ago
- asked 3 years ago
- asked 2 years ago
- asked 4 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago