← All courses
Dashboard
Courses
Problems
Badges
Theme
Sign inStart free
System Design Architect · course 1Easy

Foundations of Scale

Start here. Over sixteen lessons you will follow a single web request from the browser to the database, learn to estimate load before you draw, and then build up the toolkit that makes systems scale: stateless services behind load balancers, clean APIs, DNS and CDNs, caches and how to keep them fresh, SQL and NoSQL stores, indexes, object storage, replicas and shards. A final review lesson ties it all together into one repeatable design method. Ten challenges, including four capstones, let you build and test each idea on the canvas and see its effect in the Feedback panel.

0/16 lessons · 0/10 challenges0%
Start lesson 1
  1. 1

    How a web request travels

    12 min

    Follow one request from the browser to the database and back, and see where time and failures hide.

  2. 2

    Back-of-the-envelope estimation

    15 min

    Turn a product description into requests per second, storage and bandwidth before you draw a single box.

  3. 3

    Latency numbers every designer should know

    12 min

    Memory, disk, network and distance: the rough costs that decide where data should live.

  4. 4

    Horizontal scaling and load balancing

    15 min

    Why one server is never enough, and how a load balancer turns many servers into one.

    Practice
    1. 1/10Design a URL ShortenerEstimate peak redirects per second and size a stateless API tier behind a load balancer to serve them.Easy
  5. 5

    Stateless services and sessions

    14 min

    Move user state out of your servers so any instance can serve any request.

    Practice
    1. 2/10Design a Session StoreMove login sessions out of the web tier into a replicated in-memory store with TTLs and a clear fallback.Easy
  6. 6

    API basics: REST, pagination and idempotency

    15 min

    Design endpoints that are predictable, cheap to serve and safe to retry.

  7. 7

    DNS and content delivery networks

    14 min

    Route users to the right place and serve content from the edge, close to them.

    Practice
    1. 3/10Design Static Website HostingCombine DNS, a CDN and object storage so millions of static sites load fast without touching an origin server.Easy
  8. 8

    Caching the read path

    15 min

    Serve repeated reads from memory and protect your database from load.

  9. 9

    Cache invalidation and write patterns

    15 min

    Keep cached data fresh enough, and choose how writes reach the cache and the database.

    Practice
    1. 4/10Design a Product CatalogServe read-heavy product pages with cache-aside over SQL and keep them fresh when a product is edited.Easy
  10. 10

    SQL and NoSQL basics

    16 min

    Choose a data store by its access patterns and guarantees, not by fashion.

  11. 11

    Indexes and query performance

    14 min

    Make reads fast by avoiding full scans, and understand what indexes cost on writes.

    Practice
    1. 5/10Design a Blogging PlatformModel posts and comments in SQL with the right indexes, then cache and CDN the read path.Easy
  12. 12

    Object storage and media

    14 min

    Store files and media cheaply and durably, and keep large bytes away from your servers.

    Practice
    1. 6/10Design a File Upload ServiceAccept large uploads with presigned URLs to object storage, metadata in SQL and a scanning worker.Easy
  13. 13

    Replication and durability

    15 min

    Keep data safe and available when machines fail.

    Challenge checkpoint
    1. 7/10Design a Photo Sharing AppCapstone: durable photo storage, CDN delivery, background thumbnails and a replicated metadata store in one design.MAJORMedium
  14. 14

    Scaling reads with replicas

    14 min

    Use replicas to multiply read capacity, and handle the replication lag that comes with them.

    Challenge checkpoint
    1. 8/10Design a News FeedCapstone: serve a very read-heavy feed with precomputed caches and read replicas while tolerating replication lag.MAJORMedium
  15. 15

    Introduction to sharding

    16 min

    Split data across machines when one primary can no longer hold the writes or the dataset.

    Challenge checkpoint
    1. 9/10Design a Distributed Key-Value CacheCapstone: build the cache itself, spreading keys with consistent hashing, replicating them and handling hot keys.MAJORMedium
  16. 16

    Putting it together

    18 min

    A repeatable method for turning requirements into a scalable design, using everything in this course.

    Challenge checkpoint
    1. 10/10Design a Video-on-Demand PlatformCapstone: apply the full method to upload, transcode, store and stream video to millions through a CDN.MAJORMedium