The Specialty News
Tech

Two Engineers and an AI Swarm Replace AWS DynamoDB, Saving $100M Yearly

A microscopic team built a custom search database in eight weeks, slashing data retrieval times by 5.6x without renting generic cloud space.

By The Specialty News DeskEdited by 4 min read
Two Engineers and an AI Swarm Replace AWS DynamoDB, Saving $100M Yearly
Photo: TechCrunch / Wikimedia Commons (CC BY 2.0)

Two human engineers just ripped out a foundational piece of Amazon's cloud architecture and replaced it in eight weeks. They didn't write the new distributed database line by line. Instead, they acted as fleet commanders, directing a swarm of hundreds of persistent AI agents to build a custom system that cuts Perplexity's data retrieval latency down to 5.6 milliseconds. It is a proof of concept for a new era of engineering, where a small company can build specialized infrastructure without the large headcount.

Commanding the Swarm

Perplexity CEO Aravind Srinivas recognized that AI-native search processes data differently than classic search. Amazon's DynamoDB, while powerful, is a one-size-fits-all product. Bending Perplexity's specific workload to fit generic cloud space was adding milliseconds to user queries and acting as a tax on the company's growth. To build an independent stack, they designed CobbleDB, an in-house key-value store optimized purely for fast web content fetches.

Getting it built required a shift in how software is made. The two engineers on the project did not manually type out the complex distributed-systems code required for a durable state and query-time retrieval. Their jobs shifted to scoping, supervising, and gating the output of an AI agent swarm at an infrastructure grade.

We built a replacement for AWS DynamoDB, a key-value database for fast web content fetches. This was done with two engineers and hundreds of persistent Computer agents over two months.Aravind Srinivas

Getting an AI assistant to write boilerplate app code is routine today. Trusting an unsupervised swarm to generate the deep infrastructure that keeps a search engine online requires an entirely different level of verification, leading to a structural shift in cloud economics.

Escaping the Cloud Tax

Escaping the Cloud Tax
Photo: @AravSrinivas / X

The move to custom architecture pays off instantly in raw speed. By separating document processing from ingestion and tuning the database exactly to their workload, the new system slashed median batch-read latency by 5.6x, dropping from 31.4 to 5.60 milliseconds. Users get answers faster because the search engine no longer has to negotiate with a generalized cloud environment.

That number represents an escape hatch from the standard cloud computing trap. Historically, building a bespoke distributed database required a dedicated, highly specialized engineering team, making it a luxury reserved for tech monopolies. Every other growing company had to accept the buy side of the build-versus-buy equation, paying steep fees for managed services. The agent swarm effectively democratized the ability to build custom enterprise infrastructure. Now, the open question shifts from how to write the code to how to maintain it.

What Happens at 3 AM

Leaving AWS means canceling the external warranty. If CobbleDB goes down in the middle of the night, human engineers have to debug autonomous, agent-written code without a support ticket to Amazon. The next operational frontier is building robust human-verification artifacts so teams can confidently maintain and audit what their fleets build for long-term security.

Even with those maintenance hurdles, the balance of power has shifted. Startups can now afford to build purpose-built architecture that keeps performance high and margins wide. The executing unit of a tech company has fundamentally changed: a small team with a clear blueprint and a persistent swarm can now build exactly what they need, keeping the performance gains for their users and the savings for themselves.

Custom DB Saves Perplexity $100M

A visual summary of this story

The Brief

Stay curious

AI and technology: what changes and why it matters.
Your daily selection, in English or Spanish.

Free forever. Unsubscribe anytime.

Conversation

Start the conversation

No account needed. Comments are checked automatically — keep it civil.

More stories

Keep reading