Technology2 sources

Anthropic Migrates Messages API to Rust, Reduces CPU Usage by 70%

  • Anthropic migrated its Messages API from Python to Rust, with Claude agents contributing to the code.
  • The new Rust API uses about 70% less CPU per request compared to the Python version.
  • The transition was validated by comparing the two versions on live traffic before fully deploying the Rust API.
  • The migration was completed without any Rust developers on Anthropic's team.
  • The new Rust API is now the main API behind Claude and is fully operational.
Anthropic Migrates Messages API to Rust, Reduces CPU Usage by 70% | Split Angle