Replit details new sandbox engine: Kubernetes orchestrates microVMs for 1M+ daily sandboxes
amasad · x · 2026-12-03
Replit's engineering team published part 2 of its sandbox engine series, explaining how it orchestrates tens of thousands of microVMs and launches over a million sandboxes daily.
- Context: Part 1 covered rebuilding the sandbox runtime for the agentic era with microVMs for security isolation — but microVMs boot slower and are less lightweight than containers, and Replit runs tens of thousands of high-churn microVMs at once.
- Old system: Docker containers on GCE VMs, autoscaled via Managed Instance Groups on CPU/memory utilization with a custom control plane. Years of accumulated special cases made changes risky, with critical knowledge concentrated in a few people's heads.
- New approach: The team moved orchestration to Kubernetes while rewriting the runtime, adding warm pools, shared memory, and other optimizations to handle slow microVM boots at scale.
A rare first-hand architecture reference for teams building agent sandboxes and code-execution infrastructure.
More from coding & agent
- Vibe coding is a skill: like DJs, there are good and bad vibe coders — julianharris · 2026-12-03
- 2026 China AI Agent Conference in Beijing: 47 Speakers Across 8 Workshops Announced — 智东西 · 2026-12-03
- Prompt Guardrails Aren't Security Boundaries: Who Stops a Compromised Agent? — docybo · 2026-12-03
- AI reverse-engineers NVIDIA's closed Linux driver in Rust, unlocking locked V100 performance — 量子位 · 2026-12-03
- MCP Needs Execution-Time Authorization, Not Just OAuth Access Tokens — docybo · 2026-12-03
- Open Shop: a parts store built for AI agents, with 9 MCP tools and Stripe checkout — Alert_Champion_7885 · 2026-12-03