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 (http://aws.amazon.com/elasticloadbalancing/) as the frontend.
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:
- Open the EC2 console and select Load Balancers, and on the left pane click on Create a load balancer.
- Create a load balancer for your VPC.