# Anthropic 如何将 Messages API 从 Python 迁移到 Rust

> 原标题：Migrating our Messages API to Rust

- 来源：Anthropic：Research
- 发布时间：2026-11-25T00:00:00.000Z
- AOB：https://aob.cc/items/n0g45hp16ckkr5tm46ghy760v
- 原文：https://www.anthropic.com/research/migrating-api-to-rust

## 摘要

Anthropic 将 Messages API 从 Python 迁移到 Rust，每请求 CPU 用量降低约 70%，首 token 中位延迟缩短约 20%，全程未停服也未冻结功能开发。

## 推荐理由

原文给出把生产系统本身当作验证器、用检查点和指纹定位差异并让智能体自动修复的迁移方法，可复用于其他大型系统重写。
