Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Shopify Engineering 8 min read Case study mediumAdept

The Story Behind Shopify’s Isospin Tooling

Shopify replaced the shell-script tooling behind its Spin cloud dev environments with Isospin, which runs multiple applications inside a single Linux VM by modeling them as systemd services. Template units (foo@bar) let each app get its own copies of dependencies like MySQL and Elasticsearch, while generators build per-app targets and service graphs at boot from runtime configuration. Port collisions are solved by a dependency service that hashes service names into stable port assignments injected as a PORT environment variable. Readiness is handled with systemd's NOTIFY_SOCKET via a notify-port wrapper that polls the assigned port, which caught services bound to the wrong port or failing silently at startup.

Assumes: Linux service managementsystemd unit files

Related posts

  • The Journey to Cloud Development: How Shopify Went All-in on Spin

    Shopify Engineering mediumAdept

    Shopify replaced its laptop-based `dev` tool and xhyve-backed `railgun` VM with Spin, a cloud development environment, after monoliths and multi-repository projects outgrew local machines and made tophatting collaborators' changes painful. The path went through experiments: a local Kubernetes cluster that never caught on, and ad hoc GCE VMs that gained surprising traction. The first Spin version ran a host pod holding cloned repos plus a Docker Compose stack, and early adopters found its edit-here/run-there split confusing. The team then moved to per-developer Kubernetes namespaces with one pod per repository, and the broader lesson is iterating with users rather than shipping a finished design.

  • How We Built Oxygen: Hydrogen’s Counterpart for Hosting Custom Storefronts

    Shopify Engineering easyNovice

    Oxygen, Shopify's hosting platform for Hydrogen custom storefronts, assembles GitHub, GitHub Actions and Cloudflare Workers with first-party Shopify services such as the CDN, Admin API and identity. Shopify briefly built its own V8-isolate infrastructure but chose Cloudflare's Workers for Platforms instead to ship faster and reduce scale and security risk. A Gateway Worker checks authorization and routes requests to per-storefront workers via the Dynamic Dispatch API, and a Trace Worker forwards logs and metrics to a separate Grafana/Loki/Cortex/Tempo stack that keeps merchant-facing telemetry apart from internal metrics.

  • Building Agents that Don't Break Themselves

    Fly.io mediumAdept

    Separate where an agent lives from where it executes code: keep the agent loop on a durable host and send every shell command to a disposable Sprite sandbox. SpriteDoc, an internal multi-user troubleshooting agent built on Pi, creates one Sprite per session on first filesystem use and tears it down when idle. It injects each user's flyctl token only for the duration of a single command, so no credential ever rests in the sandbox. Kyle's Hermes Agent backend instead keeps one persistent Sprite per task and skips dangerous-command approval prompts because the sandbox is the security boundary. Copy-on-write checkpoints let an agent that deletes its own work and toolchain be restored in about nine seconds.

  • Agent Swarms on Sprites

    Fly.io mediumAdept

    Running each coding agent in a swarm on its own Sprite (a Fly.io sandboxed machine) avoids the shared-filesystem, conflicting-dependency and blast-radius problems of co-located agents. An orchestrator Sprite running Claude Code creates worker Sprites via the API and hands them tasks. Workers can checkpoint and restore their whole environment in about three seconds, which makes speculative parallel attempts practical. Per-agent DNS-level network policies restrict egress, results can flow back over HTTP endpoints, a shared Postgres Sprite or orchestrator file reads, and idle Sprites pause and persist.

  • Inside Bitso’s Branch-Based Workflow

    Neon easyNovice

    Bitso, with 250+ engineers and hundreds of Java microservices talking over Kafka, replaced unreliable shared dev and staging environments with RISE (Robust Isolated Staging Environment). Signadot sandboxes route requests for PR-modified services to isolated versions, and Neon copy-on-write Postgres branches give each sandbox its own production-like database when needed. Roughly half the services could keep sharing a database. Those needing schema changes, write-heavy tests or destructive migrations get per-sandbox branches that scale to zero or are deleted afterward, so the exact tested artifact is what ships to production.

The quest for software engineering knowledge.

Look:
Layout: