What a Pandemic Demand Spike Taught Me About Cloud Architecture

TL;DR

• The problem: During the 2020 pandemic surge, a major food-delivery platform stayed up by spending millions on reactive scaling. The expensive architecture mistakes had been made months earlier.

• The blind spot: We have great tools for deploying and monitoring infrastructure once it's running. We have almost nothing for validating cost, risk and scalability before we commit to code.

• AI makes it worse: In 2026, a tech giant reportedly burned through its entire annual AI budget in about four months, because nobody could see what the architecture would cost.

• The fix: Diagrm turns static cloud diagrams into blueprints you can reason about. It flags cost overruns and scaling bottlenecks at design time, when they're still cheap to change.

 

Before I started Diagrm, I spent years as a principal solutions architect, helping fast-growing tech companies build and scale on the cloud. The industries and the stacks changed from one engagement to the next, but the same pattern kept showing up. One experience in particular made it impossible to ignore.

The scramble

It was early 2020, and I was working with a fast-growing food-delivery platform. The team had spent years scaling carefully and, like most good teams, planned for tomorrow's demand to be a bit larger than today's. Then the pandemic changed customer behavior almost overnight. Whole cities moved online at once, and demand blew past every historical assumption the system was built on.

Customers felt it right away. Orders were getting lost, the app stopped responding under load, and failure rates kept climbing. We did what you do in a crisis: we scaled hard. We provisioned more infrastructure and replicated big parts of the system until it stabilized. The architecture was largely a monolith, so that meant duplicating entire sections of it when only a handful of use cases were actually constrained. It cost the company millions of dollars, but it kept the service standing through the surge.

It worked. The platform recovered, and by the usual standard for a production incident, that's a success. I still couldn't let it go. The questions that stuck with me weren't about that night. They were about everything that came before it.

The questions that stayed with me

Why had nobody tested the system's scalability assumptions against a more aggressive demand scenario? Why did recovery mean replicating large chunks of the architecture instead of expanding the two or three things that were really constrained? Why did we only find the real limits under live production pressure, with customers watching? And why was every option we had reactive, something we could only do after the system was already failing?

The easy move in a moment like that is to blame the technology: the database, the queue, the cloud service, the framework. We looked hard at all of them.

The honest answer was different. A lot of our energy went into the database engine, whether it was the right one and whether it was tuned properly. The question almost nobody asked was how each use case actually accessed data, and what transactional pattern it really needed. The system had been scaled as a single block because nobody had analyzed it finely enough to scale only the constrained parts. The technologies were mostly doing what they were designed to do. What had never been examined was the architecture itself, as a whole and use case by use case, against the conditions it would eventually face. The decisions that determined how the system behaved at 10x load had been made months earlier, one reasonable choice at a time, and nobody could see their combined effect until the bill arrived in production.

It wasn't just one company

If this had been a single unlucky team, it would be a war story. But once I started looking for the pattern, I found it at nearly every place I worked.

Cost overruns traced back to an assumption someone made a year before anyone opened the invoice. Security incidents turned out to be architectural tradeoffs nobody had revisited. Reliability problems were design constraints in disguise. Again and again, the most expensive infrastructure outcomes weren't operational accidents. They were architectural decisions whose consequences only became visible once the decisions were hard to reverse. The most expensive ones are almost always made months before anyone realizes they're expensive.

What struck me most was how lopsided our tooling is. We have excellent tools for the after: we can deploy infrastructure in minutes, monitor it in real time and optimize it once it's running. For the before, there was nothing comparable. There was no serious way to understand what an architecture would cost, or what risk it carried, while it was still just a design and cheap to change.

Why this matters more now

The pattern turned out to be far more common than I realized, and it's getting worse. It's now playing out in AI infrastructure, where a single architectural decision can move millions of dollars in GPU and inference spend, and even sophisticated companies get caught off guard. In 2026, a senior Uber executive said the company had burned through its entire annual AI budget in roughly four months (Fortune, May 2026). If a company that size can be surprised by its own spending, discipline isn't the issue. Visibility is. It's the same gap I watched a food-delivery team fall into in 2020, with much bigger numbers attached.

A missing layer, not a missing tool

The longer I thought about it, the less I believed any single tool would close this gap. What the industry lacks is a whole layer: a way to reason about and validate an architecture at design time, before a decision hardens into deployed reality. Other disciplines that build expensive things already have one. Architects analyze blueprints before breaking ground, and electrical engineers test schematics before manufacturing. Software infrastructure never developed an equivalent. We got very good at deploying and observing, and skipped the step where you understand a design before committing to it. That missing layer, more than any one product, is what I wanted to build toward.

The idea

That's why Diagrm exists.

The question I kept coming back to was simple. What if a cloud architecture diagram wasn't a static picture you draw and then abandon, but a blueprint you could reason about before you build? What if, the moment you placed a component, you could see what it would cost, where the risks were and whether the design held up, and only deployed once you understood it?

That's what we're building. Diagrm is a place to design a cloud or AI architecture visually, watch the projected cost as you go, get risks and inefficiencies flagged as you work, and deploy only when the design is right. You find out what you built before it's running and expensive, not after.

I don't think that food-delivery team did anything wrong that night. They did the only things the situation allowed. The problem was that by the time the situation arrived, every good option was already behind them. I started Diagrm so the most important infrastructure decisions get made while they're still decisions, not after they've hardened into production.


— Javier Navarro-Machuca, PhD, Founder & CEO, Diagrm

 

What's the most expensive architecture decision you've discovered too late? I'd like to hear your version. The stories tend to be more alike than you'd expect.

Want to see what designing before deploying looks like? Try Diagrm.

Previous
Previous

Why AI Infrastructure Costs Spiral Out of Control