Continue where you left off ×
Cloudflare, the case study
Boards
Everything · Open board
The nine boards on one canvas.
Before you start. You need to know that when you open a web address, some machine somewhere has to answer it, and that the nearer that machine is, the faster the page arrives. That is all the background this story needs.
The idea in 30 seconds
Cloudflare stands in front of more than a fifth of the web, and every server it owns runs the same software and answers the same address.
Anycast means one address announced from many cities, with the routing system choosing. Failover comes free. The price is that you can only steer in blocks of 256 addresses.
An isolate is a compartment inside one running program, not a computer: 5 milliseconds and 3 megabytes against a container’s half-second and 35 megabytes.
Spectre cannot be fixed, so Workers freeze the clock instead. No threads and no shared memory are security rules, because a clock is anything that counts.
A Durable Object is one named object, in one place, on one thread. Consistency becomes a property of the address rather than a protocol.
Everything that makes this fast is sameness, and sameness is why a bad regular expression or a doubled configuration file takes down everything at once.
Read the story
Lesson 80 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 plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson The company that stands in front of a fifth of the web 2011: one address answered by 330 cities, which is anycast 2018: a sandbox that is only a heap, which is the isolate The price of sharing: Spectre, and a clock that does not tick The counter that three cities want to increment: a Durable Object 2.29 seconds to every machine on Earth: Quicksilver 2019 and 2025: the bill for having no walls The whole machine on one page The table that carries the argument The carried-back state problem, protocol by protocol Storage under a Durable Object Quicksilver, and the regex in full 06 · The Attack Divides Itself 07 · 434 Years of Handshakes What is NOT published (do not invent it) Terms it explains: sameness, anycast, isolate, Worker, Spectre, Durable Object, Quicksilver, 5 ms, 434 yrs of handshakes/day, 82%, 4.7 seconds, Unimog, Plurimog, Pingora, Anycast catchment stability, Inter-PoP latency, BigPineapple, Hardware Gens 1–9, Stale records, 31.4 Tbps, 205M rps, IP Jail, /24, never published a measurement, explicitly refuse the guarantee, GRE, QUIC, TCP, TURN/STUN, DSR, flowtrackd, IPsec, December 2021, every, two, previous, SYN, flows, Duomog, VM.
Review System Design
Mark as read Saved in this browser, and to your account when you sign in.