Skip to content

How It Works — Scalability

How a system grows from ten users to ten million without rewriting itself. These flows spread traffic across servers, keep data close to readers, and turn synchronous work into asynchronous pipes.

Traffic

Spreading work across many servers so no single one carries the whole load.

Load Balancer — Round-Robin + Health Checks

API Gateway

CDN Edge Lookup

Data

How storage engines keep data durable, fast, and shareable across many readers — writes that survive crashes, caches that absorb reads, and shards that spread the load.

Postgres Write with WAL

Cache-Aside Pattern

Leader-Follower Replication

Sharding — Routing by Hashed Key

Optimistic vs Pessimistic Locking

Isolation Levels

Messaging

Asynchronous pipes — producers write once, consumers read at their own pace. These flows cover queues, streams, change capture, and large blobs.

Kafka Produce / Consume

SQS with Dead-Letter

Change Data Capture — Debezium

S3 Multipart Upload