Skip to content
Contact

Series · 12 parts

System Design Fundamentals

A practical path through the building blocks of scalable systems: load balancing, scaling, caching layers, replication and sharding, consistent hashing, consistency models, message queues, idempotency, rate limiting, service communication, and high availability — grounded in real production engineering, not just interview theory.

  1. The System Design Interview: A Senior Engineer's Framework

    A system design interview tests whether you can take a vague problem and reason out loud about trade-offs. Here is the repeatable framework I use on both sides of the table.

    Part 1 of 12 · System DesignThe System Design Interview: A Senior Engineer's Framework — Aman Kumar Singh
  2. Load Balancing Explained: Layers, Algorithms, and Health Checks

    The moment you run more than one server, you need something deciding who gets which request. Here is what a load balancer does, the layers it works at, and how it picks a server.

    Part 2 of 12 · System DesignLoad Balancing Explained: Layers, Algorithms, and Health Checks — Aman Kumar Singh
  3. Horizontal vs Vertical Scaling: When to Scale Out, When to Scale Up

    More users than your setup can serve leaves two options: a bigger machine or more machines. That simple fork ripples through your whole architecture.

    Part 3 of 12 · System DesignHorizontal vs Vertical Scaling: When to Scale Out, When to Scale Up — Aman Kumar Singh
  4. Caching Layers Explained: From Browser to Database

    A cache is a second copy of your data, and now you must keep two copies from disagreeing. Here is the full hierarchy and what belongs at each layer.

    Part 4 of 12 · System DesignCaching Layers Explained: From Browser to Database — Aman Kumar Singh
  5. Database Replication and Sharding: Scaling the Data Tier

    The database is the hardest tier to scale because holding state is its whole job. Replication and sharding solve different problems — confusing them is expensive.

    Part 5 of 12 · System DesignDatabase Replication and Sharding: Scaling the Data Tier — Aman Kumar Singh
  6. Consistent Hashing Explained: Distributing Data Without the Reshuffle

    How do you spread data across servers so adding or removing one moves as little data as possible? The naive approach works until you scale, then falls apart.

    Part 6 of 12 · System DesignConsistent Hashing Explained: Distributing Data Without the Reshuffle — Aman Kumar Singh
  7. The CAP Theorem and Consistency Models, Without the Folklore

    CAP is the most cited and most misunderstood idea in distributed systems. Strip away the "pick two of three" folklore and it becomes a genuinely useful lens.

    Part 7 of 12 · System DesignThe CAP Theorem and Consistency Models, Without the Folklore — Aman Kumar Singh
  8. Message Queues Explained: Async Work, Delivery, and Failure Modes

    The most useful move in a growing backend is learning to say "not right now." A message queue is how you say it — and unlock resilience, throughput, and decoupling.

    Part 8 of 12 · System DesignMessage Queues Explained: Async Work, Delivery, and Failure Modes — Aman Kumar Singh
  9. Idempotency and Exactly-Once: Making Retries Safe

    Every serious backend has work that must not happen twice, and every distributed system guarantees some operations will be attempted twice. Idempotency reconciles the two.

    Part 9 of 12 · System DesignIdempotency and Exactly-Once: Making Retries Safe — Aman Kumar Singh
  10. Rate Limiting Algorithms: Fixed Window, Token Bucket, and More

    A rate limiter is the bouncer at your API's door. "How many requests per window" can be counted several ways, and each algorithm behaves differently at the edges.

    Part 10 of 12 · System DesignRate Limiting Algorithms: Fixed Window, Token Bucket, and More — Aman Kumar Singh
  11. API Gateways and Service Communication: REST, gRPC, and Events

    Past a single service, two questions appear: how does the outside world reach your fleet, and how do services talk to each other? Gateways and communication styles answer them.

    Part 11 of 12 · System DesignAPI Gateways and Service Communication: REST, gRPC, and Events — Aman Kumar Singh
  12. Designing for High Availability: Redundancy, Failover, and RTO/RPO

    High availability is not a feature you add at the end. It emerges from a hundred design decisions made under one assumption: everything fails.

    Part 12 of 12 · System DesignDesigning for High Availability: Redundancy, Failover, and RTO/RPO — Aman Kumar Singh