Factory Scales AI Backend to Millions of Requests

๐กSee how Factory runs an AI-agent backend at tens of millions of daily requests without a dedicated infrastructure team.
โก 30-Second TL;DR
What Changed
A single Vercel backend handles tens of millions of daily requests across API routes, middleware, and webhook handlers.
Why It Matters
The case demonstrates that AI-agent platforms can consolidate customer APIs and internal automation on a modern web platform instead of building separate infrastructure. This may lower operational overhead for lean AI startups, though teams still need to evaluate function limits, security controls, and workload isolation.
What To Do Next
Prototype your AI service on Vercel using Next.js API routes, Fluid compute, and WAF, then load-test memory and function-duration limits before production.
Key Points
- โขA single Vercel backend handles tens of millions of daily requests across API routes, middleware, and webhook handlers.
- โขFactory reports a p95 response time of 350ms or below, supported by Vercel Fluid compute keeping functions warm.
- โขInternal teams use Droids to create analytics dashboards, customer-specific demos, and custom utilities without engineering bottlenecks.
- โขObservability and WAF capabilities protect the self-serve backend at the network level as usage expands.
๐ง Deep Insight
AI-generated analysis for this event.
๐ Enhanced Key Takeaways
- โขFactory's 'Droids' platform utilizes an agentic architecture designed to automate complex software engineering tasks, moving beyond simple code generation to autonomous repository management.
- โขThe backend architecture leverages Vercel's Edge Middleware to perform authentication and request routing at the network edge, significantly reducing latency before requests reach the primary compute layer.
- โขFactory has integrated specialized observability tooling that allows non-engineering staff to monitor 'Droid' performance metrics, effectively democratizing system health insights across the organization.
- โขThe implementation utilizes Vercel's 'Fluid Compute' to maintain warm execution environments, specifically mitigating cold-start latency issues common in high-throughput serverless AI workloads.
- โขFactory's infrastructure strategy relies on a 'serverless-first' approach, allowing them to scale horizontally across multiple cloud regions without managing underlying Kubernetes clusters or container orchestration.
๐ Competitor Analysisโธ Show
| Feature | Factory (Vercel/Next.js) | GitHub Copilot Workspace | Devin (Cognition AI) |
|---|---|---|---|
| Primary Focus | Autonomous Agentic Backend | IDE-integrated Assistance | Autonomous Software Engineer |
| Infrastructure | Serverless (Vercel) | Managed Cloud | Proprietary/Cloud Hybrid |
| Latency (p95) | ~350ms | Varies (IDE dependent) | Varies (Task dependent) |
| Self-Serve Capability | High (Internal Droids) | Moderate | Low (Managed Service) |
๐ ๏ธ Technical Deep Dive
- Architecture utilizes Next.js API Routes as the primary interface for agentic task orchestration.
- Employs Edge Middleware for global request interception, security filtering, and WAF enforcement at the CDN level.
- Integrates Vercel Fluid Compute to minimize cold starts for AI-driven function execution, ensuring consistent response times for high-frequency API calls.
- Observability stack is built on top of Vercel's native logging and analytics, augmented by custom telemetry for tracking agentic 'Droid' decision-making processes.
- Backend logic is decoupled from state management, utilizing external databases to maintain context across long-running autonomous tasks.
๐ฎ Future ImplicationsAI analysis grounded in cited sources
โณ Timeline
Weekly AI Recap
Read this week's curated digest of top AI events โ
๐Related Updates
AI-curated news aggregator. All content rights belong to original publishers.
Original source: Vercel News โ

