Real-world engineering challenges: building Cursor — 100x growth, 1M+ QPS, and billions of daily code completions
Cursor needed to deliver sub-second AI code completions at massive scale — 1M+ transactions per second — without storing sensitive source code on the server.
Cursor's initial database Yugabyte did not scale as expected and had to be migrated to PostgreSQL; a separate large indexing outage forced an emergency migration to turbopuffer.
Cursor reached $500M+ in annual revenue and 100x growth in load within 12 months, serving over 1M transactions per second and used by more than 50% of the 1,000 largest US companies.
Show all 12 reported metrics
Frequently asked questions
What did this team achieve with this AI workflow?
Cursor reached $500M+ in annual revenue and 100x growth in load within 12 months, serving over 1M transactions per second and used by more than 50% of the 1,000 largest US companies.
What tools did this team use?
TypeScript, Rust, Electron, turbopuffer, Pinecone, Warpstream, Datadog, PagerDuty, Slack, Sentry.
What results were reported?
Load growth in 12 months: 100x; Peak transactions per second: 1M; Annual revenue run rate: $500M+; Enterprise code lines written per day: 100M+ (source-reported, not independently verified).
What failed first in this deployment?
Cursor's initial database Yugabyte did not scale as expected and had to be migrated to PostgreSQL; a separate large indexing outage forced an emergency migration to turbopuffer.
How is this workflow AI workflow structured?
Context collected and encrypted locally → In-house LLM generates autocomplete → Tab suggestion displayed to user → Chat query triggers codebase search → Vector search on codebase embeddings → Source code fetched from client → Server answers with retrieved context → Merkle tree sync keeps index current.