Skip to content
← All work

Case 01 / Web app

Conduit

A real-time playground for distributed system design.

Role
Design & engineering, solo
Platforms
Web
Built with
TypeScript · React · Canvas 2D · Vite
Conduit simulating requests flowing through a load balancer, two API servers, a cache and a database

Overview

Sketch an architecture, press Space, and watch every request move through it. Conduit models worker pools, bounded queues, back-pressure and failures, so you can see why a system slows down instead of guessing.

What it does

  1. 01A real queueing model: fixed workers, bounded queues and rejections beyond them
  2. 02Deterministic engine on a 120 Hz fixed timestep with a seeded RNG, so resets replay the same traffic
  3. 03Failure injection, three load-balancing strategies, bursty Poisson traffic
  4. 04Share links carry the whole design compressed in the URL hash; nothing is uploaded

Under the hood

  • ✺Rewrite of my earlier SysArch Interactive, split into a DOM-free core, engine and renderer
  • ✺Distance is latency: about 1 ms per 3 px, so layout decisions show up in the numbers
  • ✺Full undo/redo, snap-to-grid, PNG and JSON export, light and dark themes, touch and pinch support
The Conduit editor with its component dock
Drag in clients, balancers, servers, caches and databases, then wire them up.
Next caseMirrorLab→A fast, private photo editor written in Rust and rendered on the GPU