Anthropic Rebuilds Messages API in Rust Cutting CPU Use 70%

Original title: Anthropic rebuilt its Messages API in Rust, and each request now uses about 70% less CPU.
78AI Score

Anthropic migrated its Messages API from Python to Rust, cutting per-request CPU usage by roughly 70% to absorb API traffic that has grown about 1,800x since early 2024. Claude produced a first draft in about a week, but the hard part was proving behavioral parity with the Python service, which teams of Claude agents used to track down and fix differences between the two versions.

Full Report

Rohan Paul (@rohanpaul_ai) · 2026-11-25 20

Anthropic rebuilt its Messages API in Rust, and each request now uses about 70% less CPU.

Python slowed every request, and API traffic has grown roughly 1,800 times since early 2024.

Claude wrote a first draft in about a week, but proving it behaved exactly like Python was harder.

↳ 引用 @AnthropicAI (Anthropic): We recently migrated our Messages API from Python to Rust.

On our engineering blog, we share how we used the existing service to verify the new one, with teams of Claude agents tracking down and fixing differences between the two versions.

https://www.anthropic.com/research/migrating-api-to-rust

推文配图