Product

How we scaled our platform to 50 million agent runs daily

A deep dive into the infrastructure decisions that let us handle massive scale without breaking a sweat — or the bank.

Published on

Written by

Professional portrait of a man with folded arms against a soft gradient background.

David Park

Scenic lake with grassy shoreline, rocky foreground, and mountains under a bright blue sky.

Last month, we hit a milestone: 50 million agent runs processed in a single day. Zero downtime. Average latency under 100ms. And our infrastructure costs actually went down compared to the previous quarter.

This post is a behind-the-scenes look at how we got here.

When we started, like most startups, we ran everything on a single Kubernetes cluster. It worked fine for our first few customers. But as usage grew, we started hitting walls. Cold starts were killing our latency. Scaling was reactive, not predictive. And our AWS bill was becoming a recurring nightmare in our board meetings.

The first big change was moving to a multi-region architecture. We now run inference workloads across 12 regions globally, automatically routing requests to the nearest healthy cluster. This alone cut our p99 latency by 60%. Users in Singapore were no longer waiting for round-trips to us-east-1.

The second change was rethinking how we handle bursty workloads. AI agents are inherently unpredictable. A single customer might go from 100 requests per minute to 10,000 in seconds. Traditional auto-scaling couldn't keep up — by the time new instances spun up, the burst was over.

Our solution was predictive scaling based on historical patterns combined with aggressive warm pooling. We maintain a reserve of pre-warmed instances that can absorb traffic spikes instantly. The system learns each customer's usage patterns and pre-provisions capacity before they need it. It sounds expensive, but it's actually cheaper than reactive scaling because we waste fewer resources on cold starts.

The third change was optimizing our inference layer. We built a custom request batching system that groups similar queries together, maximizing GPU utilization without sacrificing latency. We also implemented speculative execution for multi-step agent workflows — starting likely next steps before the current step completes.

The results speak for themselves. Our infrastructure now handles 50M+ daily runs with 99.99% uptime. Median latency is 42ms. And we're doing it at a cost per request that's 3x lower than when we started.

We'll be open-sourcing parts of this infrastructure in the coming months. If you're interested in early access, drop us a line.

FAQ

your questions, answered

Everything you need to know to get started.

Does this work with Goodnotes, Notability, or Bear?

Yes. StudyMapp does not replace the app you write in. It's an entirely different tool to help you remember and study your notes. Export or share a page from any notes app and it becomes a note here. You keep writing wherever you already write.

Do I have to make flashcards?

Not at all. A note is a page you already wrote. You drag a few tiles over the parts you want to be tested on and that is the whole setup.

Why rewrite on paper instead of tapping an answer?

Recalling something and producing it yourself is a stronger memory operation than recognising it.

Does it sync between my iPhone and iPad?

Yes, over iCloud, using your own iCloud account. Notes, folders, tiles and review history all carry across.

Are my notes or handwriting sent anywhere?

Never. Notes are stored on your device and in your own private iCloud storage. There is no StudyMapp server holding your pages, and nothing is used to train anything.

FAQ

your questions, answered

Everything you need to know to get started.

Does this work with Goodnotes, Notability, or Bear?

Yes. StudyMapp does not replace the app you write in. It's an entirely different tool to help you remember and study your notes. Export or share a page from any notes app and it becomes a note here. You keep writing wherever you already write.

Do I have to make flashcards?

Not at all. A note is a page you already wrote. You drag a few tiles over the parts you want to be tested on and that is the whole setup.

Why rewrite on paper instead of tapping an answer?

Recalling something and producing it yourself is a stronger memory operation than recognising it.

Does it sync between my iPhone and iPad?

Yes, over iCloud, using your own iCloud account. Notes, folders, tiles and review history all carry across.

Are my notes or handwriting sent anywhere?

Never. Notes are stored on your device and in your own private iCloud storage. There is no StudyMapp server holding your pages, and nothing is used to train anything.

FAQ

your questions, answered

Everything you need to know to get started.

Does this work with Goodnotes, Notability, or Bear?

Yes. StudyMapp does not replace the app you write in. It's an entirely different tool to help you remember and study your notes. Export or share a page from any notes app and it becomes a note here. You keep writing wherever you already write.

Do I have to make flashcards?

Not at all. A note is a page you already wrote. You drag a few tiles over the parts you want to be tested on and that is the whole setup.

Why rewrite on paper instead of tapping an answer?

Recalling something and producing it yourself is a stronger memory operation than recognising it.

Does it sync between my iPhone and iPad?

Yes, over iCloud, using your own iCloud account. Notes, folders, tiles and review history all carry across.

Are my notes or handwriting sent anywhere?

Never. Notes are stored on your device and in your own private iCloud storage. There is no StudyMapp server holding your pages, and nothing is used to train anything.

ready to change how you study?

20 notes for free. No credit card required.

ready to change how you study?

20 notes for free. No credit card required.

ready to change how you study?

20 notes for free. No credit card required.