- Anthropic's Katelyn Lesse said a Python service that once scaled by adding CPU strained its cluster, and asking the clouds for more got harder.
- Our reading: when extra capacity stops being easy to buy, the price of a CPU-hungry stack arrives as an engineering rewrite.
Anthropic's Python API outgrew its CPU cluster, and getting more CPU from the clouds got harder. Katelyn Lesse leads platform engineering at Anthropic. She told The Pragmatic Engineer podcast that the answer was a rewrite in Rust.
What was said
Lesse described the original service as a Python monolith, meaning one large program, running in a single Google Cloud region. It began as a small team working close to research, where Python was the common language.
Then request volume spiked, including around a Super Bowl commercial. The CPU cluster got crunched. Lesse said that for most of her career, "CPU was the sort of resource that, you know, you could auto scale to your heart's desire." This was the first time she felt that asking the clouds for more was a harder conversation.
The old design relied on scaling out: when load grows, add more machines. A speaker on the show noted the service ran on a single thread, which is not an efficient system. Lesse said the team tried a second region, but network bandwidth between regions became hard. It also found smaller efficiencies. Then an engineer argued for something drastic.
Anthropic had already started building new services in Go. Lesse said Go sat in a nicer spot between efficiency and developer experience. For the parts that needed the most performance, people wanted to go further, to Rust. Few on the team knew Rust. She said the models had become good enough to handle more of the implementation details.
Why it matters
Our reading: many budgets assume that more load means buying more servers. Lesse described the first time that assumption strained for her. When it does, the cost of a CPU-hungry stack stops being a line on a cloud bill. It becomes a rewrite project.
That rewrite was large. The layer covers authorization, authentication, billing and security. Lesse said "deciding to rebuild the whole thing was definitely a big decision." Engineering time carries that cost first. For managers, the practical questions are how much of your headroom depends on adding CPU, and whether you could rebuild if you could not.
The other side
This is one company at very large scale, after a sharp spike in demand. Lesse did not say every Python backend is in trouble. The excerpts give no figure for how much CPU the rewrite saved.
She did not describe a market-wide CPU shortage either. The host later summarised the story that way. Her own account centred on request growth straining one cluster.
Python was also a sensible first choice. It let research, inference and product staff work together. The rewrite leaned on models that write Rust well, and not every team can count on that. The host added that Rust brings memory safety and a feedback layer that helps agents check their work. That is his view.
Written by the WebPulse Newsroom with AI assistance, and checked by our editorial review: every quotation was verified against the recording's transcript. How we use AI.
The conversation this talking point comes from
- The Pragmatic Engineer: How Anthropic builds software in 2026 with Katelyn Lesse (2026-11-25)





