GitHub Blog· Taylor Cuilty·· 2026-10-15精选AI 评分65
GitHub 重构 Star History API:从 2,500 次请求降至 24 次
From 2,500 requests to 24: Rebuilding star history without the stargazers
AI 导读
GitHub 为解决高星数仓库 Star History 查询性能与隐私问题,上线了新的聚合接口。新接口按日返回最多 30 周的 Star 数量变化,不再暴露用户身份。
推荐理由
原文详细拆解了从返回身份列表到按周聚合的重构过程,并给出了 react/react 仓库在新旧接口下的请求数对比,可作为高并发 API 成本优化的参考案例。
来源:GitHub Blog · github.blog