Claude rewrote Anthropic’s API in Rust, and production stayed up
Anthropic moved its Messages API from Python to Rust after traffic grew roughly 1,800 times. CPU use fell by about 70%, while the first token arrived about 20% faster.
AI news faster than on the site — on Telegram KARMAZIN MEDIA

Anthropic rewrote its Messages API from Python to Rust with help from Claude. Customers use the API, as do Anthropic’s own products, Claude Code and Cowork. Traffic grew roughly 1,800 times from early 2024 to fall 2026, and the old implementation could no longer handle the load.
Claude wrote the first version of the core request path in about a week. The team had to test the new implementation against live traffic because the model can produce different answers to identical requests, and the test suite does not cover every production quirk.
After the migration, CPU use per request fell by about 70%, while median time to first token dropped by about 20%. The service never went offline.
Tools
Tools
AI agents