Skip to content

Figure style preview: hand-drawn vs 3D

Phase 6 · Distributed systems · 8 min read

What this page is

A side-by-side test of two figure styles for these lessons. Each section below draws the same idea twice: first as a static hand-drawn diagram in the Excalidraw style (the look used by Hello Interview), then as the interactive 3D figure you have already seen. Open both, play with the 3D one, and decide which style is enough, or where each one earns its place. A comparison table sits at the end.

The hand-drawn figures are SVG drawn with rough.js, so they follow light and dark mode, scale to any width and need no WebGL.

Contents

Jump to a pair.

Reference: cache-aside

The same kind of diagram as on Hello Interview's caching page: boxes, circles, double-headed arrows and short blue annotations.

Cache-aside: the application checks the cache, reads the database on a miss, then writes the value back with a TTL.

1 · Caches in a PoP

One PoP: the load balancer hashes the URL, so every object has exactly one home server and the origin is asked once per object.
Interactive 3D figure (needs WebGL and a network connection). The same idea in 3D: leave Routing on Random, then switch to hash(URL) and compare the hit rate and the origin requests.
The same idea in 3D: leave Routing on Random, then switch to hash(URL) and compare the hit rate and the origin requests.

2 · L4 versus L7 load balancing

L4 pins a whole connection to one server; L7 picks a server for every request.
Interactive 3D figure (needs WebGL and a network connection). The same idea in 3D: switch between L4 and L7, then raise the number of servers.
The same idea in 3D: switch between L4 and L7, then raise the number of servers.

3 · Quorum reads and writes

With N=3, W=2 and R=2 the write set and the read set always share a replica, so the read sees the new value.
Interactive 3D figure (needs WebGL and a network connection). The same idea in 3D: set W and R yourself, then cut the link to replica C.
The same idea in 3D: set W and R yourself, then cut the link to replica C.

4 · Consistent hashing

Adding node E moves only the keys between B and E, instead of reshuffling almost everything as hash modulo N would.
Interactive 3D figure (needs WebGL and a network connection). The same idea in 3D: drag Nodes from 4 to 5 with hash % N and with the ring, and watch how many keys move.
The same idea in 3D: drag Nodes from 4 to 5 with hash % N and with the ring, and watch how many keys move.

5 · Retry storm

A retry at every layer multiplies the load on the failing dependency: three layers retrying three times is 27 requests.
Interactive 3D figure (needs WebGL and a network connection). The same idea in 3D: change the retries per layer and switch on the retry budget.
The same idea in 3D: change the retries per layer and switch on the retry budget.

6 · Saga with a pivot

Before the pivot, a failure is compensated; after the pivot you retry until it succeeds and never roll back.
Interactive 3D figure (needs WebGL and a network connection). The same idea in 3D: choose which step fails and watch the saga undo itself or push forward.
The same idea in 3D: choose which step fails and watch the saga undo itself or push forward.

Side-by-side verdict

Hand-drawn (Excalidraw style) 3D interactive
Best at Structure and flow: who talks to whom, what each part is Behaviour over time and under change: what happens when you flip a variable
Reader effort Read it in seconds; nothing to operate Needs a minute of play; the lesson is in the controls
Interactivity None (a static picture) Sliders, buttons, live counters
Authoring cost Low: about 15 lines per figure High: a small simulation per figure, plus testing
Phones Scales cleanly, text stays readable The canvas scales to width, so labels get small
Page weight and limits Plain SVG, no limit per page One WebGL context each; about 12 figures per page
Offline and accessibility Works with only rough.js; easy to give a text alternative Needs WebGL; text fallback only
Looks like A whiteboard sketch, familiar from interview prep material A flat zine illustration, distinctive

A reasonable split

Use hand-drawn diagrams for architecture and request flows (most figures), and keep a 3D or interactive figure only where time or a control is the lesson: quorum overlap, retry multiplication, an election, a cutover. That gives you both fast reading and a few figures worth playing with.