Story

On air. The free wire runs 15 minutes behind live. See pricing

World, crypto, finance and tech news, scored for impact.

TechHacker NewsFiled 15 h ago

Migrating our Messages API to Rust

Open the sourceReported by Hacker News, anthropic.com, 25 November 2026

Not investment advice. Muhabbit scores how much a story may matter, not which way to trade.

Anthropic has migrated its Messages API, the primary interface customers and internal apps like Claude Code use to reach Claude, from Python to Rust, cutting CPU usage per request by roughly 70% and reducing median time to first token by about 20% without taking the service offline. The company said API traffic grew roughly 1,800 times between early 2024 and fall 2026, making the Python implementation's per-request overhead untenable. Claude drafted a first version of the API's core request path in about a week, but verifying parity with the live production system proved difficult because the Python API kept changing, model responses are nondeterministic, and customer requests could not be read directly. Anthropic addressed this by turning the production Messages API itself into a verifier, testing the Rust version against live traffic, identifying divergences, and automatically dispatching agents to fix them. The migration matters as a template for using AI to rewrite live, high-traffic infrastructure where correctness is hard to define, and the next test is whether the approach scales to other core systems.

Muhabbit's AI wrote this summary in its own words from Hacker News's report. It can get details wrong, so check the source.

Named in this story

Anthropic, Claude, Messages API, Rust, Python