Menu
InfoQ Architecture·August 31, 2026

DoorDash Flux: Scaling Engineering Task Automation with Cloud-Based Agents

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 Architecture

The Challenge of Local Agent Execution

Before 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:

  • Resource Constraints: Local execution limited available CPU and memory, impacting performance and throughput.
  • Uptime Dependency: Tasks were reliant on the developer's device remaining connected and powered on, leading to interrupted workflows.
  • Security Risks: Agents running locally had access to the developer's credentials and internal systems, posing a security vulnerability.
  • Lack of Observability: Monitoring agent activity, system access, and operational context was difficult, hindering auditing and policy enforcement.

Flux Architecture: Key Primitives for Cloud-Based Automation

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:

  • Cloud Sandboxes: These provide isolated execution environments for agent workloads, ensuring tasks run securely and deterministically.
  • MCP Gateway (Agent Gateway): An in-house gateway that controls and scopes agent access to internal DoorDash systems, enhancing security and auditability.
  • Reusable Playbooks: YAML-defined configurations that specify tasks, required tools, permissions, and safety boundaries for automated workflows.
  • Invocation Surfaces: Mechanisms to trigger workflows, including Slack, GitHub webhooks, cron jobs, and command-line interfaces, integrating seamlessly into developer workflows.
💡

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.

System Design Considerations and Benefits

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.

  • Improved Security: Centralized control over agent access to internal systems and credentials, minimizing risks associated with local execution.
  • Enhanced Scalability: Cloud-based agents can run in parallel without contending for local developer resources, supporting high volumes of automated tasks.
  • Better Observability: Centralized logging and monitoring of agent activity, providing insights into system access and task execution.
  • Developer Productivity: Engineers can trigger complex workflows from common tools (Slack, GitHub) without worrying about local environment setup or resource consumption.
automationcloud-agentsmicro-vmsfirecrackerdevopssecurityscalabilityworkflow-automation

Comments

Loading comments...