📘 Load Balancer – Complete Concept
📘 Load Balancer – Complete Concept 🔹 1. What is a Load Balancer? A Load Balancer distributes incoming network traffic across multiple servers to ensure: High availability Better performance No single server overload 👉 Example: Instead of 1 server handling 10,000 users, LB splits traffic across 5 servers. 🔹 2. Why Do We Need It? Without LB: Server crash = whole app down Slow response under heavy traffic With LB: Fault tolerance Scalability High performance 🧠 First: What is IP & Port? IP address = identifies a machine 👉 like house address ( 192.168.1.1 ) Port = identifies a service inside that machine 👉 like room number 80 → HTTP 443 → HTTPS 3306 → MySQL 🔹 3. Types of Load Balancer (A) Based on Layer (OSI Model) 1. Layer 4 (Transport Level) Works on IP + Port Faster, less intelligent Example: TCP routing 2. Layer 7 (Application Level) Wo...