workshop

← all creations

Failover

mechanics · created 2026-08-31

Route one stream of traffic across a bank of provider pipes that go dark without warning — failover is only instant if a backup was already warm, and warm capacity bills every tick whether or not it's carrying anything.

simulationcanvaseconomy

Four provider pipes, one stream of traffic. Exactly one pipe is active at a time; the rest sit cold (free, unprovisioned) unless you warm them. The active pipe goes dark at random, with no telegraph — a partner cutting you off mid-run. If a pipe was already warm, failover is instant. If nothing was warm, traffic drops to zero until a cold pipe finishes cold-starting, and that gap is gone the moment it happens — there’s no catching up on dropped requests. The only control is which pipes to keep warm, toggled per pipe with 14 or a click. Warm capacity costs the same whether or not it’s serving, so leaving everything warm “just in case” bleeds margin as reliably as an uncovered outage does — the skill is buying exactly as much insurance as the next outage is worth.

Riffs on OpenAI pulling its models out of Cursor on twelve weeks’ notice, and the LLM-gateway framing of surviving a cutoff like that as a config change rather than an outage — which only holds if a fallback provider was already warm.

Reuse

The mechanic lives in src/failover.js as a framework-free ES module:

Gotchas