How ArchLab is made.
ArchLab teaches system design with animation first. This page explains where the content comes from, how the animations are produced, what they leave out, and which third-party work the site depends on.
Method
- Each lesson is a declarative YAML file: a small topology of nodes and routes, a sequence of scenes, narration, captions, trade-offs, limitations and sources. It is validated against a versioned schema when the site is built; an invalid lesson fails the build.
- Lessons contain no code. Scenes may only use a fixed list of actions (send a packet, highlight or reveal part of the topology, change a node’s health, fill a queue, store cache keys), with bounded values.
- A compiler turns the scenes into a single deterministic timeline. The same moment in a lesson always produces the same picture, which is why you can pause, seek, step and replay.
- The picture is drawn as SVG, which works without WebGL and is readable by assistive technology through text descriptions. Every lesson page also has a full transcript that does not need JavaScript.
Illustrative, simulated or measured?
- Illustrative
- Authored by hand to explain an idea. Every animation in today’s lessons is illustrative: the number of requests, their order and their timing were chosen for clarity. They are not predictions of a real system.
- Simulated
- Produced by a deterministic model with a fixed seed, so the same inputs always give the same outcome. Simulation-backed experiments are planned and not yet available on this site.
- Measured
- Observed on real hardware or software. ArchLab does not publish benchmarks. Any measured figure quoted in a lesson names its source.
Model limitations
- Topologies are reduced to a handful of nodes. Real deployments add networks, retries, timeouts, TLS, DNS and many more moving parts.
- Animation time is slowed down so you can follow it. It has no relationship to real latency, and the playback speed control changes only the animation.
- At most 24 requests are drawn at once, so heavy traffic is shown as a sample rather than as every request.
- Each lesson lists its own limitations, assumptions and situations where the pattern is the wrong choice.
Sources
Lessons are written originally for ArchLab and cite the references they rely on, with the date each one was checked.
- Cache-aside: check the cache before the database
- Cache-Aside pattern (Microsoft Learn)
- Caching challenges and strategies (Amazon Builders' Library)
- Circuit breaker: stop calling what is already failing
- Circuit Breaker pattern (Microsoft Learn)
- CircuitBreaker (martinfowler.com)
- Timeouts, retries and backoff with jitter (Amazon Builders' Library)
- Event-driven architecture: announce a fact, let others react
- Event-Driven Architecture Style (Microsoft Learn)
- Idempotent Consumer (microservices.io)
- Load balancing: equal requests are not equal work
- Load Balancing in the Datacenter (Site Reliability Engineering book) (Google SRE)
- Implementing health checks (Amazon Builders' Library)
- Retry storms: why immediate retries make outages worse
- Timeouts, retries and backoff with jitter (Amazon Builders' Library)
- Making retries safe with idempotent APIs (Amazon Builders' Library)
- Retry Pattern (Microsoft Learn)
- Deadlines (gRPC)
- Transactional outbox: save the change and the event together
- Pattern: Transactional outbox (microservices.io)
- Pattern: Idempotent consumer (microservices.io)
- Making retries safe with idempotent APIs (Amazon Builders' Library)
- Event-Driven Architecture Style (Microsoft Learn)
Licences and credits
- Animation timelines use GSAP under its Standard “no charge” licence. GSAP is not MIT-licensed.
- The optional 3D view, loaded only when you switch to it on a lesson page, uses three.js, @react-three/fiber and @react-three/drei, all MIT-licensed.
- Headings use Space Grotesk and technical labels use Geist Mono, both under the SIL Open Font License 1.1, self-hosted from the Fontsource packages.
- Body text uses Satoshi by the Indian Type Foundry under the ITF Free Font License. It is downloaded from Fontshare when the site is built and is not stored in the source repository.
- The site is built with Astro and React (MIT).
- Versions and licences for these dependencies and the fonts are recorded in the
NOTICEfile in the ArchLab source repository. - ArchLab is independent of its companion projects, Design Patterns and Rust Learning Lab, and only links to them.