System Design

System Design

Rate limiters, circuit breakers, sharding, real-system blueprints.

155Articles
155Topics covered
Articles in this category

All 155 articles, sorted alphabetically

Advertisement
ARTICLE · 01

System Design: Rate Limiting

Read article
ARTICLE · 02

System Design: Circuit Breaker Pattern - AICassindra

Deep dive into the Circuit Breaker pattern for building resilient distributed systems.

Read article
ARTICLE · 03

Bloom Filters

Bloom Filters

Read article
ARTICLE · 04

The Saga Pattern: Managing Distributed Transactions

The Saga Pattern: Managing Distributed Transactions

Read article
ARTICLE · 05

System Design: Load Balancing - AICassindra

Deep dive into Load Balancing strategies, algorithms, and implementation patterns in distributed systems.

Read article
ARTICLE · 06

Airbnb Smart Pricing Architecture

The ML system that suggests nightly prices to hosts across millions of listings.

Read article
ARTICLE · 07

Alipay Super-App Architecture

China's other super-app: mobile payments + credit + wealth management at 1.3B users.

Read article
ARTICLE · 08

Amazon Shopping Cart Architecture

How Amazon keeps carts consistent across sessions, devices, and unavailable items.

Read article
ARTICLE · 09

API Gateway Architecture

The gateway pattern: single entry for many services + built-in auth, rate-limit, transform.

Read article
ARTICLE · 10

API Gateway Patterns

Backend for Frontend, response aggregation, and cross-cutting concerns at the edge.

Read article
ARTICLE · 11

API Versioning Strategies

How to evolve APIs without breaking existing clients.

Read article
ARTICLE · 12

ATM End-to-End Architecture

From card insertion to cash dispense: every service, network hop, and reconciliation step.

Read article
ARTICLE · 13

Autocomplete / Typeahead Architecture

Prefix trees, ranking, and sub-100ms latency for search suggestions.

Read article
ARTICLE · 14

Bulkhead Pattern

How to prevent one slow service from starving all thread pools.

Read article
ARTICLE · 15

Cache Aside vs Write-Through vs Write-Behind

The three cache-integration patterns, when each wins, and their consistency tradeoffs.

Read article
ARTICLE · 16

Cache Invalidation Strategies

TTL, write-through invalidation, versioning, and pub/sub. Trade freshness vs load.

Read article
ARTICLE · 17

Cache Stampede Prevention

The problem: hot key expires, 1000 concurrent requests slam the DB. Three solutions.

Read article
ARTICLE · 18

CDN Architecture

How content delivery networks minimize latency by caching close to users.

Read article
ARTICLE · 19

CDN Cache Hierarchy

Multi-tier caching that turns global content into local responses.

Read article
ARTICLE · 20

CDN Architecture

How a modern CDN uses anycast + edge compute to serve billions of requests globally.

Read article
ARTICLE · 21

Circuit Breaker Pattern

The three states + how to configure for your traffic + failure profile.

Read article
ARTICLE · 22

CQRS + Event Sourcing Architecture

Split writes (commands) from reads (queries), persist events instead of state.

Read article
ARTICLE · 23

Credit Card Payment Flow Architecture

The complete authorization + capture + settlement flow across acquirer, network, and issuer.

Read article
ARTICLE · 24

Database Sharding Architecture

How to split a table across N databases, with routing + rebalancing.

Read article
ARTICLE · 25

Designing a Real-Time Chat System (1M concurrent users)

End-to-end architecture for a WhatsApp-scale chat system, from connection layer to message storage.

Read article
ARTICLE · 26

Designing an API Gateway

Routing auth rate-limit observability in one tier.

Read article
ARTICLE · 27

Designing a Distributed Cache (Memcached/Redis-style)

Consistent hashing replication and eviction policies.

Read article
ARTICLE · 28

Designing an Event-Driven Order System

State machine, idempotency, and the recovery story.

Read article
ARTICLE · 29

Designing a Feature Flag System

Targeting, rollout, kill switch, and audit.

Read article
ARTICLE · 30

Designing a File Upload Service (S3-style)

Resumable uploads multipart deduplication and lifecycle policies.

Read article
ARTICLE · 31

Designing a Metrics Aggregation System

Time-series ingest pre-aggregation and downsampling.

Read article
ARTICLE · 32

Designing a Notification Service

Push email SMS multi-channel fan-out with retries.

Read article
ARTICLE · 33

Designing a Payment System

Idempotency keys ledger reconciliation and PCI scope.

Read article
ARTICLE · 34

Designing a Quota System

Token bucket, sliding window, distributed counters.

Read article
ARTICLE · 35

Designing Search at Scale

Inverted index, ranking, freshness, personalization.

Read article
ARTICLE · 36

Designing Search Autocomplete

Trie-based prefix matching with personalization.

Read article
ARTICLE · 37

Designing Uber Dispatch System

Geo-indexing matchmaking and surge pricing.

Read article
ARTICLE · 38

Designing a URL Shortener (TinyURL-scale)

Hashing collision strategies database choice and analytics.

Read article
ARTICLE · 39

Directory-Based Sharding

Explicit key-to-shard mappings for maximum flexibility and per-tenant isolation.

Read article
ARTICLE · 40

Discord Architecture

How Discord handles millions of concurrent voice channels + huge text servers with low latency.

Read article
ARTICLE · 41

Distributed Cache Architecture

How a horizontally-scaled cache handles millions of keys across N nodes, with the resharding strategy.

Read article
ARTICLE · 42

Distributed Cache Consistency Models

Strong vs eventual consistency options for distributed caches, with fault behavior.

Read article
ARTICLE · 43

DoorDash Architecture

How DoorDash coordinates customers, restaurants, and Dashers with real-time dispatch.

Read article
ARTICLE · 44

Dropbox File Sync Architecture

How Dropbox syncs files across devices with delta sync + block-level dedup.

Read article
ARTICLE · 45

Elasticsearch Cluster Architecture

How Elasticsearch distributes an index across nodes with sharding + replication.

Read article
ARTICLE · 46

Email Delivery Architecture

How email gets from sender to recipient through anti-spam gauntlets.

Read article
ARTICLE · 47

Event-Driven Microservices Architecture

How services communicate via events instead of synchronous calls, with the failure modes.

Read article
ARTICLE · 48

Facebook Messenger Architecture

Meta's messenger stack: MySQL-derived TAO + custom binary protocol + optional Signal E2E.

Read article
ARTICLE · 49

Real-Time Fraud Detection System Architecture

How payment platforms score millions of transactions/second in under 100ms.

Read article
ARTICLE · 50

Geo-Partitioning

Sharding by geography for compliance + user latency wins.

Read article
ARTICLE · 51

Google Drive + Docs Real-Time Collaboration Architecture

Operational Transformation and CRDTs behind multi-user document editing.

Read article
ARTICLE · 52

Google Maps Real-Time Traffic Architecture

How aggregated GPS pings from billions of phones become live traffic overlays.

Read article
ARTICLE · 53

Google Search Architecture

How Google indexes 100B+ pages and returns relevant results in <200ms.

Read article
ARTICLE · 54

Grab Architecture

Grab's evolution from ride-hailing to rides + food + payments + more across 8 countries.

Read article
ARTICLE · 55

GraphQL Architecture

Query language, resolvers, N+1 problem, and DataLoader patterns.

Read article
ARTICLE · 56

gRPC + Protobuf Architecture

How gRPC delivers 10x smaller payloads and streaming across languages.

Read article
ARTICLE · 57

Hash Sharding

Hash-based sharding: mechanics, hotspot avoidance, rebalancing tradeoffs.

Read article
ARTICLE · 58

iCloud Sync Architecture

How Apple keeps notes, photos, contacts, and messages in sync across every Apple device.

Read article
ARTICLE · 59

Idempotency Key Pattern

How idempotency keys enable safe retries without duplicate charges or double-writes.

Read article
ARTICLE · 60

iMessage Architecture

How iMessage delivers end-to-end encrypted messages across Apple devices using APNs + cloud sync.

Read article
ARTICLE · 61

Instagram Feed Generation Architecture

Photo + video feed with ranking, stories, and reels at Facebook-scale infrastructure.

Read article
ARTICLE · 62

Kafka Partition Architecture

How Kafka's partition model scales throughput and delivers ordered messages within a key.

Read article
ARTICLE · 63

L4 vs L7 Load Balancer Architecture

Where each operates in the stack, decision points, and when to use which.

Read article
ARTICLE · 64

LinkedIn Architecture

How LinkedIn serves 1B members with a mix of Kafka, Espresso, and Voldemort at Microsoft-scale infra.

Read article
ARTICLE · 65

Meta Threads Architecture

How Threads launched in 5 days by leveraging Instagram's infrastructure.

Read article
ARTICLE · 66

PayPal P2P Architecture

How PayPal processes billions of P2P transfers with balance-based ledger + bank integration.

Read article
ARTICLE · 67

Range Sharding

Range-based sharding for time-series, geo queries, and ordered scans.

Read article
ARTICLE · 68

Rate Limiter Architecture

Two canonical rate limiter algorithms, side by side, with an inline architecture diagram.

Read article
ARTICLE · 69

Rate Limiting Strategies Compared

Token bucket, leaky bucket, fixed window, sliding window — when each one is wrong.

Read article
ARTICLE · 70

Recommendation System Architecture

Two-tower models, candidate generation, ranking, and serving at 200M+ user scale.

Read article
ARTICLE · 71

Reddit Architecture

How Reddit ranks 100K+ subreddit posts and comments with the classic hot algorithm.

Read article
ARTICLE · 72

REST API Design Deep Dive

Resource modeling, verb semantics, versioning, and hypermedia for real REST APIs.

Read article
ARTICLE · 73

Robinhood Trading Architecture

Zero-commission mobile-first trading and the payment-for-order-flow economics.

Read article
ARTICLE · 74

Amazon S3 Object Storage Internals

How S3 achieves 11 nines durability + infinite scale via erasure coding + partition placement.

Read article
ARTICLE · 75

Saga Pattern for Distributed Transactions

Long-running business transactions via compensating steps instead of 2PC.

Read article
ARTICLE · 76

API gateway architecture

Deep-dive on API gateway design: data plane vs control plane, route matching and filter chains, JWKS-cached auth, distributed rate limiting, retry bud…

Read article
ARTICLE · 77

Backpressure architecture

Deep-dive on backpressure: reactive signals, bounded queues, shedding, admission control, retry with backoff, fallback, chaos.

Read article
ARTICLE · 78

Bulkhead pattern architecture

Deep-dive on bulkhead: per-dep thread pool, semaphore, reject, fallback, breaker integration, observability, sizing.

Read article
ARTICLE · 79

Cache stampede architecture

Deep-dive on cache stampede prevention: singleflight, probabilistic early expiration, TTL jitter, async refresh, circuit breaker.

Read article
ARTICLE · 80

Content Delivery Network Architecture in Depth

A 2500-word walkthrough of CDN architecture: client, edge PoP, origin shield, origin, cache rules, purge, optimization, TLS, edge compute, analytics, …

Read article
ARTICLE · 81

Circuit breaker architecture

Deep-dive on circuit breakers: states, failure + slow-call thresholds, half-open probe, fallback, bulkheads, observability.

Read article
ARTICLE · 82

CQRS architecture

Deep-dive on CQRS (Command Query Responsibility Segregation): splitting the write model that validates commands and mutates a normalized source of tru…

Read article
ARTICLE · 83

Dead-letter queue architecture

Deep-dive on the dead-letter queue: the delivery counter and retry policy, broker-level vs application-level dead-lettering, the failure-metadata cont…

Read article
ARTICLE · 84

Distributed lock architecture

Deep-dive on distributed locks: consensus-backed lock services (etcd, ZooKeeper), lease TTLs and sessions, fencing tokens checked at the resource, wai…

Read article
ARTICLE · 85

Event sourcing architecture

Deep-dive on event sourcing: commands and aggregates that emit events, the append-only event store as source of truth, rehydrating state by replay, sn…

Read article
ARTICLE · 86

Geo-distributed systems -- serving the world with low latency

Deep-dive on geo-distributed systems: the latency/availability/law drivers, multi-region replicas, data placement, the speed-of-light consistency-vs-l…

Read article
ARTICLE · 87

Gossip protocol architecture - epidemic membership, failure detection, and anti-entropy

Deep-dive on gossip protocols: the SYN/ACK/ACK2 digest exchange and version merge, phi-accrual failure detection and suspicion lifecycle, anti-entropy…

Read article
ARTICLE · 88

Hot-key mitigation architecture

Deep-dive on surviving hot keys in sharded systems: why hashing concentrates load, approximate hotspot detection, edge caching for read-hot keys, key …

Read article
ARTICLE · 89

Idempotency architecture

Deep-dive on idempotency architecture: keys, dedupe store, retry policy, conflict handling, cross-service propagation, TTL, and audit.

Read article
ARTICLE · 90

Leader election architecture

Deep-dive on leader election: quorum-based campaigning, terms/epochs, leases and heartbeats for bounded failover, fencing tokens that neutralize a sta…

Read article
ARTICLE · 91

Load shedding -- dropping work to survive overload

Deep-dive on load shedding: the overload-collapse problem, rejecting excess load, serve-some-well-rather-than-all-badly, fail fast (early rejection), …

Read article
ARTICLE · 92

Notification System Architecture in Depth

A 2500-word walkthrough of a notification system: producers, ingest queue, notification service, preferences, dedup + batching, channels, delivery tra…

Read article
ARTICLE · 93

Transactional outbox architecture

Deep-dive on the transactional outbox pattern: why commit-then-publish dual writes lose or fabricate events, writing the event to an outbox table in t…

Read article
ARTICLE · 94

Pub/sub system design architecture

Deep-dive on pub/sub design: topics, partitions, consumers, delivery guarantees, retention, DLQ, schema registry, and metrics.

Read article
ARTICLE · 95

Distributed Rate Limiter Architecture in Depth

A 2500-word walkthrough of a production distributed rate limiter: edge, gateway, local token bucket, global sliding window, Redis + Lua, fallback, and…

Read article
ARTICLE · 96

Rate limiting architecture

Deep-dive on rate-limiting architecture: local buckets + shared counters + sliding-window smoothing + policy pipeline for safe changes.

Read article
ARTICLE · 97

Read-replica routing architecture

Deep-dive on routing reads to replicas safely: read classification, LSN/GTID write watermarks, session stores, byte vs time lag, replica ejection, pri…

Read article
ARTICLE · 98

Saga pattern architecture

Deep-dive on the saga pattern: orchestration vs choreography, the durable saga log, compensating transactions and pivot placement, idempotency keys an…

Read article
ARTICLE · 99

Scaling patterns architecture

Deep-dive on scaling patterns: vertical, horizontal, stateless services, sharding, caching tiers, async, replicas, auto-scale.

Read article
ARTICLE · 100

Search System Architecture in Depth

A 2500-word walkthrough of search architecture: docs, indexer, inverted index, query, hybrid retrieval, reranking, personalization, analytics, shardin…

Read article
ARTICLE · 101

Service discovery architecture

Deep-dive on service discovery: the health-checked registry, client-side vs server-side discovery, DNS and mesh-sidecar packagings, watches and cachin…

Read article
ARTICLE · 102

Database sharding architecture

Deep-dive on database sharding: choosing the shard key, range versus hash partitioning, the routing layer and shard directory, online rebalancing, per…

Read article
ARTICLE · 103

Service Discovery Patterns

How microservices find each other in dynamic infrastructure.

Read article
ARTICLE · 104

Service Mesh Architecture

How a sidecar-based mesh separates business logic from cross-cutting concerns.

Read article
ARTICLE · 105

Shard Rebalancing Strategies

How to move data safely when adding, removing, or splitting shards.

Read article
ARTICLE · 106

Signal Protocol Architecture

How Signal's double ratchet gives forward secrecy and post-compromise recovery per message.

Read article
ARTICLE · 107

Slack Architecture

How Slack indexes billions of messages and delivers real-time updates to workspaces of thousands.

Read article
ARTICLE · 108

Snapchat Ephemeral Messaging Architecture

How Snapchat delivers self-destructing messages while enabling stories, filters, and multi-user features.

Read article
ARTICLE · 109

Spotify Music Streaming Architecture

How Spotify serves 100M+ tracks with personalized recommendations to 500M+ users.

Read article
ARTICLE · 110

Stock Exchange Matching Engine Architecture

How order matching engines process millions of orders/second with strict fairness + latency guarantees.

Read article
ARTICLE · 111

Stripe Payment Platform Architecture

How Stripe abstracts card networks, banks, and payment methods behind a clean API.

Read article
ARTICLE · 112

Backend for Frontend (BFF)

How BFF creates dedicated backend per client type (web, mobile) for optimized experience.

Read article
ARTICLE · 113

Bulkhead Pattern

How the bulkhead pattern isolates resources per dependency to prevent one failing dependency from consuming all resources.

Read article
ARTICLE · 114

Caching

The layers of caching in modern systems: CDN, reverse proxy, application cache (Redis), database query cache, and the eternal problem of cache invalid…

Read article
ARTICLE · 115

CDN

How CDNs cache content globally at edge nodes, cache invalidation, and modern edge compute (workers, functions).

Read article
ARTICLE · 116

Chat Application Design

How to design real-time chat: WebSockets, message ordering, delivery.

Read article
ARTICLE · 117

CQRS

How CQRS separates read + write models for independent scaling + optimization.

Read article
ARTICLE · 118

Event-Driven Architecture

How event-driven architecture decouples services via publishing + subscribing to events.

Read article
ARTICLE · 119

Event Sourcing

How event sourcing stores events as truth, deriving state by replay.

Read article
ARTICLE · 120

API Gateway Pattern

How API gateway provides single entry point with auth, rate limit, routing, caching.

Read article
ARTICLE · 121

Leader-Follower Replication

How leader-follower replication scales reads and provides failover.

Read article
ARTICLE · 122

Load Balancing

How load balancers distribute traffic across backend servers: L4 vs L7, round-robin vs least-connections, and health-check design.

Read article
ARTICLE · 123

Message Queues

The main message queue types (log-based Kafka vs broker-based RabbitMQ vs managed SQS), semantics (at-least-once vs at-most-once vs exactly-once), and…

Read article
ARTICLE · 124

Microservices Architecture

The microservices pattern: many small services vs monolith trade-offs.

Read article
ARTICLE · 125

Notification Service Design

How to design a scalable notification service (email, SMS, push).

Read article
ARTICLE · 126

Payment System Design

How to design a payment processing system: idempotency, ledger, reconciliation.

Read article
ARTICLE · 127

Rate Limiting

How rate limiting protects services from abuse: algorithms (token bucket, leaky bucket, sliding window), where to enforce, and cross-server coordinati…

Read article
ARTICLE · 128

Rate Limiter Design

How to design a distributed rate limiter.

Read article
ARTICLE · 129

Saga Orchestration

How saga orchestration coordinates long-running distributed workflows with compensations.

Read article
ARTICLE · 130

Search Autocomplete Design

How to design fast search autocomplete.

Read article
ARTICLE · 131

Service Discovery

How services find each other in dynamic environments: DNS-based, KV-store based (Consul, etcd), and Kubernetes service abstraction.

Read article
ARTICLE · 132

Sharded Architecture

How sharding partitions data across nodes for horizontal scale.

Read article
ARTICLE · 133

Twitter-Style Feed Design

How to design Twitter-style timeline (fanout on write vs read).

Read article
ARTICLE · 134

Uber-Style Rideshare Design

How to design a rideshare system: matching + routing + tracking.

Read article
ARTICLE · 135

Large File Upload Design

How to design large file upload: multipart, resumable, integrity.

Read article
ARTICLE · 136

URL Shortener Design

How to design a URL shortener like Bitly.

Read article
ARTICLE · 137

Video Platform Design (YouTube-Style)

How to design a video platform: upload, transcoding, streaming, recommendation.

Read article
ARTICLE · 138

Write-Ahead Log

How WAL provides durability by logging changes before applying them.

Read article
ARTICLE · 139

Telegram Architecture

Telegram's proprietary transport and its cloud-chat model that keeps messages accessible from any device.

Read article
ARTICLE · 140

TikTok Architecture

The For You Page algorithm and its real-time signal loop.

Read article
ARTICLE · 141

Twitter Timeline Generation Architecture

The fan-out patterns that make timelines feel real-time while scaling to hundreds of millions of users.

Read article
ARTICLE · 142

Uber Ride Matching Architecture

How Uber matches millions of riders to nearby drivers in seconds via geospatial indexing.

Read article
ARTICLE · 143

UPI Architecture

How UPI (Unified Payments Interface) processes 10B+ transactions/month via NPCI + Payment Service Providers.

Read article
ARTICLE · 144

Vector Search at Scale

How vector databases (Pinecone, Weaviate, pgvector) find nearest neighbors across billions of embeddings.

Read article
ARTICLE · 145

Video Streaming Architecture

How video-on-demand delivers adaptive quality to millions from a mesh of caches.

Read article
ARTICLE · 146

Website Hosting Architecture

The complete stack behind a modern static website with HTTPS, CDN, and DNS.

Read article
ARTICLE · 147

WeChat Super-App Architecture

How WeChat runs chat, payments, and 3M mini-apps inside a single app with 1.3B users.

Read article
ARTICLE · 148

WhatsApp Architecture

How WhatsApp delivers ~100 billion messages/day with end-to-end encryption and offline handling.

Read article
ARTICLE · 149

YouTube Architecture

How YouTube ingests, transcodes, stores, and delivers 4B+ hours of video daily.

Read article
ARTICLE · 150

Zoom Video Conferencing Architecture

How Zoom achieves low-latency multi-party video via SFU + regional data centers.

Read article