Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 12 · System Design · The questions that keep coming up · about 18 min to read

Watch: How can three engineers run 14 million users?
▶ VideoPlay it as a journeyTutor comes with a plan

Design an image service (upload, resize, serve)

The 3-Engineer Stack
The 3-Engineer Stack · Open board

: a photo app run by three people, with the photo files on rented storage behind a cache. This lesson builds the image part of that picture in full.

Before you start. You need the six steps from Design the Whole Thing (the interview, assembled): ask, estimate, API, data, design, bottlenecks, with a number paying for every box. Design an object store (a million-million files, and none of them lost) built the place where the bytes live, so here we treat it as a box that stores a file under a name and gives it back. The Slate, Properly (caching to real depth) showed that a cache is only as good as the name you look things up by, and that matters twice in this lesson. Later in this track, Netflix, the case study shows a cache placed near the viewer, and we borrow the idea for pictures.

Lesson 75 of 115 in System Design

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 25 June 2015: eleven copies of every photo
  • The signed URL: the film goes straight to the warehouse
  • The derivative: when does a print get made?
  • The CDN: prints wait near the customer
  • The cache key: the name a print is filed under
  • The content hash: the same film twice
  • The numbers, once
  • Requirements
  • Out of scope, said out loud
  • Targets
  • Estimates that change the design
  • Entities and API
  • Storage, with the trade said plainly
  • The design, one requirement at a time
  • Deep dives
  • What each level adds
  • The follow-up: the photo went viral

Terms it explains: original, derivative, signed URL, signature, Resize ahead, Resize on the fly, CDN, hit rate, cache key, snap, content hash, Common mistakes, photo, upload, variant, Originals, Metadata, Derivatives.

Review System Design