bigonotes
System DesignGetting Started

What Is System Design?

What system design is, the four problems it solves (scale, storage, speed, reliability), and the building blocks you will learn.

4 min readLast updated

System design is the work of deciding how the pieces of a software system fit together: which servers handle requests, where data lives, how parts talk to each other, and what happens when something breaks. Writing a function is about getting one piece right. System design is about making many pieces work together for lots of users, all day, every day. It's also a standard part of software engineering interviews, so learning it early pays off twice.

A blueprint for software#

You wouldn't build a house by nailing boards together at random. You'd start with a blueprint that shows where the kitchen goes, how the plumbing connects, and which walls hold up the roof.

A system design is that blueprint for an application. When a service like Netflix or Instagram serves millions of people, the team has to plan:

  • How data flows through the system
  • Where each kind of data is stored
  • How to handle a huge number of requests per second
  • What happens when parts fail (they will)
  • How to keep everything fast and available

A kitchen shows the same jump in size. Cooking dinner for yourself takes one pan. Running a restaurant that serves 500 people a night takes several cooks, specialized equipment, backup plans and coordination. That gap is the gap between a simple program and a designed system.

All of that planning answers one core question: how do you build software that keeps working under real-world demand, with many users, lots of data, and no downtime?

The four problems system design solves#

That core question breaks down into four problems almost every system has to deal with. The restaurant from above makes a handy comparison for each one.

Problem Restaurant version Software version Tools you will learn
Scale 5,000 guests arrive at once and one kitchen can't cope Your app goes viral and jumps from 100 users to 10 million Horizontal scaling, load balancers, sharding
Storage Fridges, freezers and dry shelves suit different food Profiles, photos, messages and payments each need different storage Relational and NoSQL databases, blob storage, search indexes
Speed Guests leave if food takes too long Users leave slow pages and apps Caching, indexing, CDNs, regional deployment
Reliability The oven breaks during the dinner rush A server crashes halfway through a payment Replication, redundancy, retries, transactions

Most design decisions trade one of these against another. A cache makes reads fast but can serve stale data. Replicating data across regions improves reliability but makes consistency harder. Learning system design is mostly learning these trade-offs.

What a typical system looks like#

The tools in that table show up again and again, because almost every web-scale system is built from the same handful of building blocks. You'll meet each one in this course.

A request flows from the client through DNS and a CDN to a load balancer, then to stateless app servers, which use a cache, a database, blob storage and a queue feeding background workers

Here's what each block does, in the order a request meets them:

  1. Client: a browser or mobile app sends a request.
  2. DNS and CDN: DNS turns the domain name into an IP address. A CDN serves static files (images, scripts) from a server near the user.
  3. Load balancer: spreads requests across many identical app servers.
  4. App servers: run your business logic. They are kept stateless so you can add or remove them freely.
  5. Cache: keeps hot data in memory so most reads skip the database.
  6. Database: the source of truth for structured data.
  7. Blob storage: holds large files such as videos and photos.
  8. Queue and workers: slow or bursty work (sending emails, encoding video) goes on a queue and is processed in the background.

Try it: a banking app#

Now put the four problems to work on a real case. Which one matters most for a banking app, and why? Think about it before reading on.

Two stand out:

  • Storage (correctness): every transaction must be recorded permanently, balances must be exactly right, years of history must be kept, and regulators require proper retention.
  • Reliability: if the system is down, people can't reach their money. A crash during a transfer must never lose funds, and data corruption destroys trust.

Speed and scale still matter, but a bank would rather be a little slow than ever be wrong. A social media feed makes the opposite choice: showing a slightly stale post is fine if the page loads instantly. Asking "what must never go wrong here?" is a good first step in any design.

Where to go next#

Each building block has its own note. These are good places to start:

Key takeaways#

  • System design decides how servers, storage and communication fit together so software works for many users at once.
  • It tackles four problems: scale, storage, speed and reliability.
  • Most systems reuse the same building blocks: load balancers, stateless app servers, caches, databases, blob storage and queues.
  • Every choice is a trade-off. Start by asking what the system must never get wrong.
Revision notes · 2 min

Core idea#

System design decides how the pieces of a software system fit together: servers, storage, communication and failure handling. The goal is software that keeps working for many users, with lots of data and no downtime.

Key points#

  • A system design is the blueprint for an application.
  • It plans data flow, data storage, request volume, failure handling, speed and availability.
  • Most design decisions trade one problem (scale, storage, speed, reliability) against another.
  • A cache makes reads fast but can serve stale data.
  • Replication across regions improves reliability but makes consistency harder.
  • Start any design with the question "What must never go wrong here?"

The four problems#

Problem Software version Tools
Scale Users jump from 100 to 10 million Horizontal scaling, load balancers, sharding
Storage Different data needs different storage Relational and NoSQL databases, blob storage, search indexes
Speed Users leave slow pages Caching, indexing, CDNs, regional deployment
Reliability A server crashes mid-payment Replication, redundancy, retries, transactions

Building blocks#

  • Client: a browser or mobile app sends a request.
  • DNS and CDN: DNS turns a domain into an IP. A CDN serves static files near the user.
  • Load balancer: spreads requests across identical app servers.
  • App servers: run business logic. Keep them stateless so you can add or remove them freely.
  • Cache: keeps hot data in memory so most reads skip the database.
  • Database: the source of truth for structured data.
  • Blob storage: holds large files such as videos and photos.
  • Queue and workers: process slow or bursty work in the background.

Pitfalls#

  • Ignoring trade-offs. Every choice costs something on another axis.
  • Treating every system the same. A bank prefers slow over wrong. A social feed prefers fast over fresh.

Say it in an interview#

  • "System design tackles scale, storage, speed and reliability."
  • "First I ask what this system must never get wrong."

Found a mistake? Email ask@bigonotes.com