Dev Tools · 2h ago
Reddit’s Comment Trees and Hot Ranking: Engineering Lessons
Reddit stores comments with parent pointers and loads all for a post in one query, assembling the tree in memory. Hot ranking uses a time-decaying score that blends votes and age to keep front page fresh. The design trades write complexity for read speed, with caching and materialized paths for deep threads.
Meridian48 take
The piece offers a clear, practical look at trade-offs in data modeling and ranking, but glosses over how Reddit's actual implementation has evolved with scale.
data-modelingranking-algorithms