#09Reddit / Hacker News
Vote-driven ranking with hot/top/new at scale.
Build a Reddit / Hacker News-shaped product: users submit links, comment in threaded discussions, and vote up/down on submissions and comments. Each subreddit (and the front page) renders **hot / top / new / best** listings ranked by a vote-driven formula. The product is read-tail-dominated: a typical session loads ~5 listings before producing a single vote. Voting is the highest-rate write workload; ranking is the largest async pipeline; comment-trees are the trickiest read path.
Reading: Reddit Architecture Overview (reddit-archive wiki) · Reddit on Postgres → Cassandra (InfoQ 2010) · Salihefendic — How Reddit ranking algorithms work · Wilson-score lower-bound for comment ranking · Fastly — How we built r/place · Pi Day 2023 outage retro · SRE Workbook — Monitoring Distributed Systems · SRE Workbook — Addressing Cascading Failures
vote-driven ranking
precomputed listings
comment-tree precompute
outbox pattern
vote idempotency
fraud / shadow-removal
hot-key counter-shard-split