Why can’t we just send every request to the same server? 🤔 When an application gets lots of traffic, one server can become overloaded. A load balancer sits in front of multiple servers and distributes incoming traffic between them. But how does it decide where traffic goes? 🔹 Round Robin: distributes traffic in order across servers. 🔹 Least Connections: sends traffic to the server with the fewest active connections. Load balancers also have different types: 🔹 L4: works with network information such as IP addresses and ports. 🔹 L7: can understand application-level requests and use their content for routing. The goal is simple: keep traffic distributed so your application stays available and responsive. 📖 Read: Load Balancer @CTBEsoftwareengineers
3