Dealing with load spikes and resource optimization in the cloud

Until now we have seen how to scale a RabbitMQ cluster manually, but in some cases it's necessary to automate this process. A typical use case is to manage load spikes automatically.

In this recipe we will see how to create an auto-scaling RabbitMQ cluster using AWS auto-scaling ( Currently, AWS auto-scaling is only available using AWS command-line tools. In this recipe we have used AWS Java command-line tools (


The auto-scaling web interface has become available after the chapter has been written. You can find the documentation at ...

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.