Grokking Operating Systems and Networking for Backend Engineers
0% completed
Layer 4 and Layer 7 Load Balancing on the Wire
Checkout runs on two servers behind a load balancer, and the dashboard shows something odd. One server handles almost all of the requests from the mobile app, while the other one sits nearly idle. Nothing is broken. The balancer was set to share work evenly, and it does. However, it shares connections, not requests, and each phone keeps one connection open for many orders.
Whether a balancer counts connections or requests depends on how much of the traffic it reads. Some balancers read only the addresses and ports on each packet, while others read every HTTP request inside the connection.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%