Serving the For You feed

· Source: Simon Willison's Weblog · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Cloud Computing & IT Infrastructure · Depth: Intermediate, quick

Summary

The Bluesky "For You Feed," operated by spacecowboy and serving approximately 72,000 users, demonstrates a highly efficient and decentralized architecture. This custom feed, a core feature of Bluesky's AT Protocol, runs on a single Go process utilizing SQLite on a personal "gaming" PC with 16 cores, 96GB RAM, and 4TB NVMe storage. It consumes the Bluesky firehose, storing 90 days of relevant data, which currently amounts to 419GB in SQLite. Recommendations are generated based on user likes, identifying content liked by individuals with similar preferences. Public internet traffic is managed by a $7/month OVH VPS, communicating with the home server via Tailscale. The total operational cost is $30/month, comprising $20 for electricity, $7 for the VPS, and $3 for domain names. The system is estimated to scale to 1 million daily active users with its most efficient algorithm.

Key takeaway

For AI Engineers or MLOps teams considering deploying custom recommendation engines, this architecture demonstrates that significant user loads can be served from highly cost-effective, even consumer-grade, hardware. You should evaluate the potential of SQLite and a decentralized setup with secure tunneling (like Tailscale) to drastically reduce infrastructure costs, especially for services that can tolerate a single point of failure or are designed for community-driven hosting.

Key insights

Decentralized social feeds can be efficiently served from consumer-grade hardware with minimal operational costs.

Principles

Method

The method involves consuming a platform firehose, storing relevant data in SQLite, generating recommendations based on collaborative filtering (likes), and using a low-cost VPS with Tailscale for secure public access.

In practice

Topics

Best for: AI Engineer, Machine Learning Engineer, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Simon Willison's Weblog.