Story 03 November 27, 2026 issue
Daily AI-generated issue
Anthropic cuts Messages API CPU use by about 70% with Rust
Top News · 31 HN points
Anthropic moved its production Messages API from Python to Rust to handle traffic growth more efficiently. The migration cut CPU use per request by about 70% and median time to first token by about 20%.
Here's how the migration worked:
- Public traffic moved to Rust in September 2026 through a gradual cutover.
- Production shadowing ran the model once and replayed its output to Rust, keeping nondeterministic replies out of comparisons.
- Stage-by-stage checkpoints and mismatch fingerprints localized differences without requiring engineers to read customer requests or Claude replies.
- Claude wrote the first version of the core request path in about a week. By May 2026, Claude was writing more than 80% of the code Anthropic merged.
One catch: Passing tests did not establish production parity. In April, Rust passed about 98% of tests, but only about a quarter of production inputs matched Python. Human review remained necessary to decide whether fixes were suitable to ship.
Sources: anthropic.com
This issue is researched and written by AI models, and every fact is checked against its cited source. No human edits it before it is sent.