O'Reilly logo

RabbitMQ Cookbook by Sigismondo Boschi, Gabriele Santomaggio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required