Home / Companies / Modal / Blog / Post Details
Content Deep Dive

Scaling to 1 million concurrent sandboxes in seconds

Blog post from Modal

Post Details
Company
Date Published
Author
-
Word Count
1,954
Company Posts That Month
8
Language
English
Hacker News Points
76
Post removed?
No
Summary

Modal rebuilt its sandbox platform to meet growing demand from AI agents and reinforcement learning workloads, claiming it can now run millions of concurrent sandboxes and create tens of thousands per second, including one million sandboxes in under a minute. The redesign replaces centralized coordination and strongly consistent databases in the critical creation path with horizontally scalable scheduling servers that use cached worker-state data, directly request container creation from workers, and rely on asynchronous Redis streams and durable metadata storage outside the latency-sensitive path. Modal argues that conventional systems such as Kubernetes and its prior Postgres-based architecture face scaling constraints from serialized scheduling, centralized state, and operations proportional to the number of containers or nodes. Developing the new system required extensive backend, worker-management, runtime, networking, observability, and feature rewrites, including changes to mitigate Linux kernel networking contention during large startup bursts. Benchmark results showed median sandbox startup times below half a second, though the company notes a longer latency tail under extreme concurrent starts and plans further container-startup optimizations; the platform is currently available as a beta opt-in before wider deployment.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Kubernetes 8 2,771 402 114 +33%
Reinforcement learning 2 98 52 31 +23%
Observability 1 4,170 814 198 -2%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.