The 7 Building Blocks Behind Every System

An open source framework for understanding system design. Used at UC Berkeley.

Why This Matters Now

AI can write code faster than any human. But it cannot decide what to build. The engineers who thrive in the AI era are the ones who understand the architectural patterns behind every system. This framework gives you that understanding.

AI writes code, you design systems

AI tools generate implementation. You provide the architecture. Knowing which building blocks to compose and why is the skill that matters most.

Same patterns everywhere

Instagram, Netflix, Uber, Slack, Stripe. Different products, same 7 building blocks. Learn the pattern once, apply it to any system.

Free and open source

The framework is free. Read the articles, try the challenges, use it in your work and interviews. No account required.

The 7 Building Blocks

Every software system is composed from these 7 universal building blocks. Two handle tasks, five handle storage. Together they can model any system.

Task

Service

Receives a request, does work, sends a response. The backbone of every API.

Task

Worker

Picks up tasks from a queue and processes them in the background, at its own pace.

Storage

Key-Value Store

Lightning-fast lookups by key. Caching, sessions, feature flags.

Storage

File Store

Stores large blobs: images, videos, PDFs. Optimized for size, not queries.

Storage

Queue

Decouples producers from consumers. Makes systems resilient to spikes and failures.

Storage

Relational Database

Structured data with relationships. Transactions, constraints, complex queries.

Storage

Vector Database

Similarity search for AI. Find content by meaning, not exact match.

Task blocks (do work) Storage blocks (hold data)

The Learning Path

Seven articles that take you from zero to fluent in the building blocks framework. Read them in order, or jump to what interests you.

    The 7 Building Blocks Behind Every System

    The big picture. Why 7 blocks are enough to model Instagram, Netflix, and every system you use daily.

    10 min read

    Services and Workers: The Two Task Blocks

    One waits for requests. The other pulls work from a queue. Learn when to use each.

    9 min read

    The 3 Storage Extremes: How to Pick the Right Database

    Speed, size, or structure. Every storage decision is a tradeoff between these three extremes.

    11 min read

    Queues: The Building Block That Makes Systems Resilient

    The secret weapon of reliable systems. How decoupling producers and consumers changes everything.

    10 min read

    External Entities: The 3 Forces That Shape Every System

    Users, external services, and time. The three forces outside your system that drive every design decision.

    8 min read

    How Netflix Actually Works: A Building Blocks Breakdown

    Apply the framework to a real system. Map Netflix from upload to playback using all 7 blocks.

    12 min read

    The Building Blocks Decision Framework

    A systematic approach to choosing the right building blocks for any system design challenge.

    10 min read

Test Your Understanding

Design Instagram, Netflix, and Uber using building blocks. Each challenge gives you requirements and asks you to pick the right blocks and compose them into a working system.

Try the Challenges

Ready for the Full Experience?

Open Source Framework

Free
  • 7 conceptual articles
  • Building blocks visual guide
  • 3 system design challenges
  • Decision framework
  • Self-guided, read at your pace

More from the Blog

Read additional articles on system design, software architecture, and thinking in systems.

Browse All Articles →