Using a load balancer
Websites that deal with huge traffic generally use a technique called load balancing to improve the availability and responsiveness of applications. A load balancer distributes incoming traffic among multiple servers hosting same content. The distribution of load is determined by various scheduler algorithms.
In this section, we will see how to add a load balancer in front of our application servers (assuming that they are running on the IPs
127.0.0.3 on the port
9000) using different HTTP web servers.
The Apache HTTP server provides a secure, efficient, and extensible server that supports HTTP services. The Apache HTTP server can be used as a load balancer through its