How Instagram Works: Fanout-on-Write With Celebrity Exception

A look at how Instagram works. Instagram serves billions of users a feed that’s the textbook example of the “fanout-on-write” pattern, with a hybrid escape hatch for celebrities. The architecture that’s survived a decade of feature growth is built on one decision: each user gets a pre-materialized timeline in Redis, updated whenever someone they follow… Continue reading

How Twitter Timeline Works: Hybrid Fanout Architecture

A look at how Twitter timeline works. Twitter’s timeline is the architecture every feed product gets compared to, because Twitter’s engineering team published the most honest write-ups of the trade-offs. The headline pattern is hybrid fanout: write-time fanout for normal users, read-time fanout for celebrities, merged on every read. The cutover threshold is the most-tuned… Continue reading

How Tinder Works: Asymmetric Match Graph at Scale

A look at how Tinder works. Tinder does ~1.6 billion swipes per day across 70+ countries, and the architectural problem nobody talks about is the match-graph asymmetry: most right-swipes never produce a match, so the write-heavy path (every swipe is recorded) is decoupled from the read-heavy path (matches are rare bidirectional edges). Tinder’s architecture optimizes… Continue reading

How Meta Serverless Works: TwSF and Bin ACL at FB Scale

A look at how Meta serverless works. Meta’s serverless platform runs internal webhooks and async jobs for Facebook, Instagram, and WhatsApp at a scale that dwarfs every public serverless offering combined. The architectural choice that makes it work is TwSF (Meta’s internal async workflow framework), purpose-built for the call patterns Lambda was never designed for…. Continue reading