Using AWS Load Balancing in front of a RabbitMQ cluster

In the previous recipe we have created a RabbitMQ cluster. Now we will see how to use the cluster from the Internet. A typical scenario is to create a public RabbitMQ as a service.

We use Amazon Elastic Load Balancing ( as the frontend.

Getting ready

You need to create a cluster as we have already seen in the Creating a cluster with two EC2 instances recipe.

How to do it…

After creating a private cluster, you can't access it directly: you need to use a gateway; let's see the AWS elastic load balance configuration:

  1. Open the EC2 console and select Load Balancers, and on the left pane click on Create a load balancer.
  2. Create a load balancer for your VPC.

Get RabbitMQ Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.