Beyond Kubernetes at Modal: How to Scale 1 Million Concurrent Sandboxes in Seconds
8.8 relevance
Score Breakdown
technical depth 9
novelty 9
actionability 8
community 8
strategic 9
personal 10
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
Modal's custom sandbox architecture at scale is a deep infrastructure case study.
Summary
Modal engineers rebuilt their sandbox infrastructure to support 1 million concurrent sandboxes, abandoning Kubernetes because its centralized etcd store and serialized scheduler become bottlenecks at high pod churn. Their new architecture uses a fleet of parallel scheduling servers that load-balance across workers via direct RPC, each worker self-reporting state to Redis. This design achieved 50,000 sandbox creations per second with median startup-to-code time under 0.5 seconds, while the sole Redis bottleneck scales beyond 100,000 workers.