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 04 · System Design · The parts, properly · about 17 min to read

Watch: API design: the contract other people's code stands on
▶ VideoPlay it as a journeyTutor comes with a plan

A lock on every door of the stall (security inside a design)

The Contract at the Counter
The Contract at the Counter · Open board

The counter where two services meet across a written menu. This lesson walks round the back of that counter and asks which doors still check who is asking.

Before you start. From The Contract at the Counter (API design) you need the API, the written menu of what a caller may ask for, and its two refusals: 401 means “I don’t know who you are”, 403 means “I know who you are, and no”. From Authentication, a login hands you a badge (a token) whose stamp stops matching if anyone edits it. From Authorization & Identity, the second question every request must answer: “is this thing yours?” Transport & Network Security gave TLS, the lock on the line that stops anyone between a phone and a server from reading along, and Rate limiting: the token bucket gave the man on the door who counts requests per customer.

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

  • September 2022: the door nobody was using
  • The stall has doors now: the API gateway
  • The side hatch: why every room checks, and zero trust
  • Where the lock on the line ends: TLS termination
  • Three brands, one kitchen: tenant isolation
  • The key to the ledger room: a secrets manager
  • Tens of thousands of addresses: limits per badge, not per doorway

Terms it explains: API gateway, zero trust, TLS termination, tenant isolation, secrets manager.

Review System Design