{
  "id": 21820540,
  "title": "Anthropic migrated Messages API to Rust with no Rust developers",
  "url": "https://urgent.news/2026/11/25/anthropic-migrated-messages-api-to-rust-with-no-rust-developers",
  "topic": "ai",
  "section": "AI",
  "published": "2026-11-25T16:28:28.000Z",
  "source": {
    "name": "Hacker News",
    "slug": "hacker-news",
    "url": "https://www.anthropic.com/research/migrating-api-to-rust"
  },
  "original_language": "en",
  "account": "The Messages API, which serves as the primary interface for customers and Anthropic's own applications, migrated from Python to Rust between early 2024 and fall 2026. The decision to rewrite the API in Rust aimed to achieve significant performance improvements, such as using 70% less CPU per request and cutting the median time to first token by about 20%. However, the migration posed challenges in verifying the Rust API's performance and functionality compared to the Python version, as the Python API continued to evolve throughout the migration process. This made it difficult to establish a reliable method for ensuring the Rust API remained at parity with the production API. To address this challenge, Anthropic turned the production Messages API itself into a verifier, enabling them to test the new Rust version on production traffic and automatically dispatch agents to fix any discrepancies. This approach allowed for the successful deployment of the Rust-based API without downtime or freezing feature development.",
  "summary": null,
  "key_points": [
    "Anthropic migrated Messages API to Rust between 2024 and 2026.",
    "Migration aimed to reduce CPU usage by 70% and improve response time.",
    "Anthropic used the API itself to verify Rust version's performance."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}