INITIALIZING SECURE CHANNEL...
CPU MEM NET PING9.2 ms SECSECURED
COFFEE—WEB v4.0 // eu-1
ONLINE 2 847 --:--:--
/english > 30. Load Balancing & Traffic Management
// УРОК 30

Load Balancing & Traffic Management

B2

Load Balancing & Traffic Management

Load Balancing Algorithms

AlgorithmHow It Works
Round RobinDistributes requests evenly in rotation
Least ConnectionsSends to the server with fewest active connections
IP HashSame client always goes to same server (sticky)
WeightedServers with more capacity get more traffic

Key Concepts

  • health check — load balancer regularly pings servers to detect failures
  • sticky session — a user is always routed to the same server
  • rate limiting — capping requests per second per client
  • circuit breaker — stops sending traffic to a failing server
  • DDoS mitigationProtecting against distributed denial-of-service attacks

Useful Phrases

  • "We use least-connections routing to avoid overloading any single instance."
  • "Health checks ensure the load balancer stops sending traffic to an unhealthy node."
  • "Rate limiting at the gateway prevents a single client from overwhelming the service."
// TERMINAL CHALLENGE

Проверь себя

Q1. What does a 'health check' do in a load balancer?
Q2. Which load balancing algorithm ensures the same user always hits the same server?
Q3. What does 'rate limiting' at an API gateway prevent?
Q4. Complete: 'We use ___ routing to avoid overloading any single application instance.'
Q5. What is a 'circuit breaker' in the context of load balancing?
╔═ GL1TCH v0.1 ═[ПОДКЛЮЧЕНО]═╗ [×]
СОЕДИНЕНИЕ АКТИВНО
запросов:
// сессия #{} начата
>_
[ РАЗРЫВ СВЯЗИ ]
лимит исчерпан...
иду спать... zzZ
хочешь больше? [зарегистрироваться] // +10 запросов в день