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.

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.