Skip to content
Modal
Modal logoModal · Feature trail

Sandboxed Code Execution

13 posts · May 2024 – Nov 2026

What this trail covers

Modal's platform supports scaling to millions of concurrent sandboxes, with tens of thousands of sandboxes created per second. This is achieved by rebuilding the core sandbox platform from the ground up, removing central bottlenecks from the control plane, and optimizing container scheduling and startup. The new system utilizes a fleet of horizontally scaled scheduling servers that directly contact workers via RPC, bypassing central datastores in the critical path for sandbox creation. This post introduces a new resource allocation strategy that moves away from fixed reservations towards a burstable model, significantly improving resource utilization for workloads with spiky CPU demands, such as AI agents and development tasks.

All Modal trails