- Anthropic
- infrastructure
- Rust
Anthropic moves its Claude Messages API from Python to Rust, cutting CPU use by 70%
Anthropic published an engineering post on November 25, 2026, describing how it migrated its Messages API, the main pathway customers and Anthropic's own products like Claude Code and Cowork use to reach Claude, from...
·1 min read·Apply

Anthropic published an engineering post on November 25, 2026, describing how it migrated its Messages API, the main pathway customers and Anthropic's own products like Claude Code and Cowork use to reach Claude, from Python to Rust. Rust is a programming language known for speed and efficiency, often chosen for performance-critical backend systems. Anthropic said it tested the new Rust version safely against real, live traffic, and used Claude itself as an agent to find and fix differences between the old and new systems during the switch. The results were significant: the Rust version uses about 70 percent less computing power per request and cuts the typical wait time before a response starts appearing by about 20 percent, all without ever taking the service down. Anthropic noted Claude wrote a working first draft of the core request-handling code in roughly a week. The scale of the challenge was large too, since traffic to the API grew about 1,800 times between early 2024 and fall 2026. An earlier, narrower rewrite of just one piece had saved less and added complexity.
Why it matters
A major AI provider just made its core API dramatically faster and cheaper to run.