DoorDash developed Flux, a cloud platform that offloads engineering agent workloads from developer laptops to isolated cloud environments. This platform automates over 130,000 engineering tasks monthly, addressing limitations of local execution like resource constraints, security risks, and lack of observability. Flux leverages microVMs for isolated execution and an in-house gateway for secure internal system access.
Read original on InfoQ ArchitectureBefore Flux, DoorDash engineers ran automated tasks, such as code reviews and CI triage, directly on their laptops. This approach presented several critical limitations for scaling and security in an enterprise environment:
DoorDash's Flux platform is built upon four core primitives designed to address the challenges of local execution and provide a scalable, secure, and observable environment for engineering tasks:
Isolation and Security with Firecracker
Flux utilizes Firecracker micro virtual machines for its cloud sandboxes. Firecracker is a virtualization technology from AWS that enables lightweight, high-performance microVMs, ideal for serverless functions and container workloads. This choice provides strong isolation between tasks, minimal overhead, and rapid startup times, crucial for provisioning on-demand execution environments.
The design of Flux showcases several important system design principles. By centralizing agent execution in the cloud, DoorDash achieved significant improvements in security, scalability, and developer experience. The platform's ability to provision environments rapidly (95th percentile under 5 seconds for sandbox setup) highlights the efficiency gained through dedicated infrastructure for automation. The MCP Gateway is a critical component for enforcing a robust security posture, logging all agent activity for compliance and incident response.