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 22 · System Design · Instagram · about 24 min to read

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

Instagram, the case study

Everything
Everything · Open board

The whole machine on one canvas. The Python program at the top is drawn once, because there was only ever one of it.

Before you start. You need to know that a website is a program running on rented computers, and that it keeps its information in a database, a filing cabinet a program writes to and searches. This is the story of a photo app that reached three billion users without ever rewriting the program at the top.

Lesson 94 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

  • October 2010: two founders, and 25,000 strangers on the first day
  • 2011: one database ran out of room, so they cut it into shards
  • Nobody waits for a million followers: fanout
  • Three shapes of data, three places to keep them
  • August 2016: Stories, and a hundred posts out of billions
  • January 2017: workers copying memory nobody had written to
  • November 2018: Europe is seventy milliseconds away

Terms it explains: shard, fanout, denormalising, copy-on-write, quorum, 69.7 years, 8,192, 2.05 billion a second, 16.7 bytes an entry, 6x, 3x, 8.3x, 10%, 12% less CPU, 30% less memory, 27.9 ms, 55.7 ms, 14 to 70 times.

Review System Design