Pattern

Storage system design

Split large or unstructured content into blob storage plus metadata, and design around durability and sync, not just capacity.

What it is

Under the "storage" label sit system design questions where the core deliverable is a place to durably keep large or long-lived content — files, messages, mailboxes, videos — and let it be retrieved, searched, shared, or synchronized across devices. What separates this from a generic "design a service" exercise is the near-universal split into two different storage tiers: a blob/object store for the large, immutable payload (a file's bytes, a video's encoded segments, an email attachment), and a metadata database for the small, frequently-queried structure around it (who owns it, its name, its permissions, its status). Almost every design in this bucket also has to answer a sync or delivery question: how does a second device, a second recipient, or a second reader learn that something changed.

When it applies

Tells in the problem

The classic mistake

Designing a single database schema that tries to hold both the payload and its metadata together, then discovering partway through the interview that this doesn't survive the stated scale, is the error that comes up most (large binary blobs blow up database size and backup time; a single store forces every metadata query to compete with heavy blob I/O). It happens because at whiteboard scale a unified "files table with a bytes column" looks simpler to reason about, and the cost only becomes visible once you push on the numbers the prompt already gave you (tens of GB per file, billions of objects). Catch it early by stating up front which store owns the bytes (object storage, addressed by an opaque key) and which owns the queryable facts (a database row pointing at that key) — and then justify only the trade-offs on top of that split, rather than relitigating it.

Questions to start with

All 5 storage system design questions

Problem statement, examples and hints are free on every page; the worked approach, solution and tests are in the company guides.

Free starter pack

13 must-tier questions with full solutions

Sign in with an email — no purchase — and read them in the full reader.

No password, no spam. One sign-in email; you can read the pack in the full reader.