如何为 Bluesky 的 For You 信息流提供服务Serving the For You feed
Bluesky 平台允许用户运行自定义 feed 算法,实现个性化内容推荐。文章探讨了如何实现高效、可扩展的 For You feed 服务,支持大规模用户并发访问。作者分析了现有架构的挑战,并提出基于分布式系统和缓存优化的技术方案。该设计显著提升了 feed 生成速度与系统稳定性。
Simon Willison
24th April 2026 - Link Blog
Serving the For You feed. One of Bluesky's most interesting features is that anyone can run their own custom "feed" implementation and make it available to other users - effectively enabling custom algorithms that can use any mechanism they like to recommend posts.
spacecowboy runs the For You Feed, used by around 70,000 people. This guest post on the AT Protocol blog explains how it works.
The architecture is fascinating. The feed is served by a single Go process running on SQLite on a "gaming" PC in spacecowboy's living room - 16 cores, 96GB of RAM and 4TB of attached NVMe storage.
Recommendations are based on likes: what else are the people who like the same things as you liking on the platform?
That Go server consumes the Bluesky firehouse and stores the relevant details in SQLite, keeping the last 90 days of relevant data which currently uses around 419GB of SQLite storage.
Public internet traffic is handled by a $7/month VPS on OVH, which talks to the living room server via Tailscale.
Total cost is now $30/month: $20 in electricity, $7 in VPS and $3 for the two domain names. spacecowboy estimates that the existing system could handle all ~1 million daily active Bluesky users if they were to switch to the cheapest algorithm they have found to work.
需要完整排版与评论请前往来源站点阅读。