Modal
Modal logoModal · Feature trail

Sandboxed Code Execution

29 posts · May 2024 – Oct 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. VM Sandboxes can now run alongside Sidecars, which provide a low-latency, isolated security boundary for trusted code, enabling scenarios like custom egress proxies and separating agent harnesses from tool calls. Sidecars share CPU and memory resources with the main Sandbox and can be created dynamically at runtime.

All Modal trails