Anthropic published a write-up last week about moving the Messages API from Python to Rust. That's the API that sits in front of Claude, including for their own products like Claude Code. Traffic on it grew roughly 1,800 times from early 2024 to fall 2026.
Claude wrote a first version of the core request path in about a week. Public traffic didn't move over until September. That gap is the story.
They tried the cautious version first. They rewrote the output parser in Rust and called it from Python, which cut CPU use by about 8% to 10%. It wasn't worth it: each token then crossed the language boundary three times. So they went for a full rewrite, even after an engineer had shut that idea down in 2024.
The new service uses about 70% less CPU per request, and median time to first token dropped by about 20%. Those two numbers aren't measured the same way: the CPU figure is from one region, and the latency figure is from Claude Code traffic over a shorter window.β¦