Published
Author
March 14th, 2023
Priyatham Vinnakota
Imagine you run a small e-commerce website that sells t-shirts. You have setup a single web server to handle all the requests to your website. Your server is capable of handling 100 requests at a time. One day, your website becomes popular and you start getting more than 100 visitors at a time. This will slow down your website and some users might even face timeout errors.
To solve this problem, you could add a Load balancer to your infrastructure. In this case, you could also setup 2 additional servers each capable of handling 100 visitors at once. A Load balancer’s job is to distribute the traffic evenly among the 3 servers, so that no server becomes overloaded.
As your website continues to grow, you can add more servers and configure your load balancer to distribute traffic across them. This allows you to virtually handle unlimited traffic, while keeping your server performance optimal.
<aside> 📎 Transport Layer Security (TLS) is a protocol that provides a secure communication between the 2 devices over the network. TLS Termination is a process of decrypting incoming traffic at the server side, so that the server can process the data in plain text.
</aside>
Yes, Load balancers can indeed be a single point of failure. We can mitigate this risk by a couple of ways: