# Aria 消息总线优化：CPU 使用率降低 30%

Original title: Scaling and benchmarking a critical message bus using a new indexing strategy

> Hacker News story 50009066 · language: zh · submitted 2026-10-08
> Web version: https://zeli.app/zh/story/50009066
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 52 · by [eatonphil](<https://news.ycombinator.com/user?id=eatonphil>) · 💬 3
[original](<https://blog.janestreet.com/scaling-and-benchmarking-a-critical-message-bus/>) · [HN discussion](<https://news.ycombinator.com/item?id=50009066>)

## Summary

Jane Street 的内部消息框架 Aria 每天处理数 TB 数据，随着客户端订阅量激增，原有的线性过滤机制导致服务器 CPU 满载。实习生 Theodor Totev 通过引入基于 topic partition 的索引策略和树分裂算法，彻底重构了 tip recovery 和 initial recovery 流程。利用 min-heap 进行多路归并，并配合动态块池管理索引，新方案在保持系统高正确性的前提下，将生产环境中的 CPU 使用率降低了 30%。此外，自适应的 subtree 分裂算法解决了冷热数据混合存储导致的读取延迟问题，将原本耗时 13 分钟的初始恢复过程优化回秒级。

## Key quote

> Theodor 提示一个 agent 连夜启动五种不同的堆实现并进行性能剖析，第二天我们就得到了答案：fast_heap_unboxed 为索引恢复代码带来了两倍的性能提升。

---

## Cite

- Page: https://zeli.app/zh/story/50009066
- Date: 2026-10-08
- Source: blog.janestreet.com (https://blog.janestreet.com/scaling-and-benchmarking-a-critical-message-bus/)
- Hacker News: https://news.ycombinator.com/item?id=50009066

## Other languages

- en: https://zeli.app/story/50009066 · markdown: https://zeli.app/story/50009066.md
- ja: https://zeli.app/ja/story/50009066 · markdown: https://zeli.app/ja/story/50009066.md
- ko: https://zeli.app/ko/story/50009066 · markdown: https://zeli.app/ko/story/50009066.md
- de: https://zeli.app/de/story/50009066 · markdown: https://zeli.app/de/story/50009066.md
- es: https://zeli.app/es/story/50009066 · markdown: https://zeli.app/es/story/50009066.md
- ru: https://zeli.app/ru/story/50009066 · markdown: https://zeli.app/ru/story/50009066.md
