Anthropic rewrote Messages API in Rust, cutting per-request CPU use by ~70%
rohanpaul_ai · x · 2026-11-27
Anthropic migrated its Messages API from Python to Rust, cutting CPU usage per request by about 70%.
Key points:
- Driver: API traffic grew roughly 1,800x since early 2024, making Python a bottleneck
- Migration strategy: kept the legacy Python service as a behavioral baseline, with teams of Claude agents tracking down and fixing differences between the two versions to prove exact equivalence
- Claude wrote the first Rust draft in about a week; proving identical behavior was the harder part
The accompanying chart shows the exponential rise in daily API requests on Anthropic's platform since January 2024.
More from coding & agent
- UK FCA sets expectations for AI agents as customers deploy their own bots — neal_lathia · 2026-11-27
- Open-source PenGPT writes cursive; 25 pages of LoRA data clones your handwriting — k7agar · 2026-11-27
- leanrea: one 8KB skill file replaces 207 MCP tools, 38% faster and 35% cheaper — tom_doerr · 2026-11-27
- Coding agents follow stale CLAUDE.md files 90% of the time — one sentence fixes it — Promptmethus · 2026-11-27
- vLLM blog: skip the DRAM tier, run agentic KV cache directly on NVMe — AccBalanced · 2026-11-27
- Google to let AI agents use Workspace MCP servers, but the Gmail one can't send email — Plastic_Koala2044 · 2026-11-27