Introducing a load balancer to consumers
In order to have a RabbitMQ cluster with many nodes, the clients must know all the IP addresses, and if the cluster configuration is dynamic, the clients should be notified of any change.
Furthermore, the clients should employ some methods to contact the clients that are less loaded.
The common solution is to put a load balancer in front of the cluster.
A load balancer can be either a hardware solution or a software package, installed and configured on general purpose servers.
Furthermore, there are many different load balancing techniques, the following being the most relevant:
- Round-robin name servers
- TCP load balancers
TCP load balancers can behave as follows:
- Proxy: In this case, all the connections are just ...
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.