INITIALIZING SECURE CHANNEL...
CPU MEM NET PING9.2 ms SECSECURED
COFFEE—WEB v4.0 // eu-1
ONLINE 2 847 --:--:--
/english > 29. Scalability in System Design
// УРОК 29

Scalability in System Design

B2

Scalability in System Design

Horizontal vs Vertical Scaling

Horizontal ScalingVertical Scaling
MeaningAdd more machinesAdd more CPU/RAM to existing machine
Also calledScale outScale up
ProsTheoretically unlimited, fault tolerantSimple, no code changes
ConsMore complexityHas physical limits, single point of failure

Key Concepts

  • stateless services — services that hold no session state, enabling horizontal scaling
  • load balancer — distributes requests across multiple instances
  • read replica — a copy of the database that handles read queries
  • write throughput — how many writes the system can handle per second

Useful Phrases

  • "To scale horizontally, the service needs to be stateless."
  • "We add read replicas to scale read throughput without increasing write load."
  • "The database is the bottleneck — we need to either shard it or add a caching layer."
// TERMINAL CHALLENGE

Проверь себя

Q1. What is the difference between horizontal and vertical scaling?
Q2. Why must a service be stateless to scale horizontally?
Q3. What is a 'read replica'?
Q4. Complete: 'We add a ___ balancer to distribute incoming requests across multiple instances.'
Q5. Which phrase correctly identifies a performance bottleneck?
╔═ GL1TCH v0.1 ═[ПОДКЛЮЧЕНО]═╗ [×]
СОЕДИНЕНИЕ АКТИВНО
запросов:
// сессия #{} начата
>_
[ РАЗРЫВ СВЯЗИ ]
лимит исчерпан...
иду спать... zzZ
хочешь больше? [зарегистрироваться] // +10 запросов в день