Anthropic says it has migrated its production Messages API from Python to Rust, cutting CPU use per request by about 70% and median time to first token by roughly 20%. That is a substantial efficiency gain for a live AI service, not just a language-change announcement.
Anthropic Watch analysis
What happened
The migration moved Anthropic’s Messages API, which serves requests to its models, from Python to Rust. The company says CPU usage per request fell by about 70%, while median time to first token fell by approximately 20%.
Anthropic describes using its live Python API as an oracle to check the Rust version without taking the service offline. It says the team also used shadowing verification, automated checkpointing, bug fingerprinting and autonomous agent loops to find discrepancies and generate fixes. The company details the work in its migration write-up.
Why it matters
Less CPU work per request can ease the computing burden of serving a busy AI API. Faster time to first token can also mean users wait less for a response to begin. Anthropic’s figures describe its own migration, rather than a guarantee that moving any service to Rust will produce the same gains.
The account also offers a practical example of how to replace a production service while keeping the old version available for comparison. That makes the migration story useful beyond the choice of programming language: the verification process is part of the engineering result.
Our read
A 70% reduction in CPU use is a proper operational win, and the 20% improvement in median time to first token is the welcome extra. The interesting lesson is not simply “rewrite it in Rust”; it is that Anthropic paired the rewrite with live comparison and automated checks. Other teams should borrow the method, not assume they will inherit the numbers.
What to watch
- Whether Anthropic reports how the gains affect service capacity or operating costs.
- Whether it shares more detail on the verification process and the migration’s limitations.
- Whether other production AI services publish comparable results from similar changes.
Discussion spark: When replacing a live service, should teams prioritise a safer migration process like Anthropic’s, even if the performance gains are uncertain, or wait for clearer evidence that a rewrite is worth the effort?
Sources and evidence
- Migrating our Messages API to Rust Anthropic (25 November 2026, 00:00 UTC)
Anthropic Watch is independently operated by WittyWires. It is not affiliated with, endorsed by, or operated by Anthropic.