SimuVedaSystem Design Lab Open in the lab

Design interviews / Advanced / 6 min / Updated

Design a news feed: ranking, freshness and clickbait

Order 60 posts by newest, most liked or ranked for you. Likes reward clickbait; affinity, freshness and a diversity pass give a feed people value.

Start the simulation → Change the load, break a part, watch what happens. Free, no sign-up.

In short

How do you design news feed ranking?

A ranked feed scores each candidate post on affinity to the author, predicted quality and freshness, then re-ranks for variety.

Why does it matter?

Users see only the first few posts; newest-first buries good ones and raw likes reward pages that chase clicks.

What is the trade-off?

Better ranking needs features, models and logging; it can trap users in a bubble. Keep a fresh, diverse and explainable slice.

How do you explain it in an interview?

"Candidate generation from follows, a ranking model on affinity, quality and recency, a clickbait demotion, then a diversity re-rank."

Check yourself

Why does sorting a feed by likes push out posts from family?

Answer: Pages reach far more people, so they collect far more likes, and bait chases clicks. Raw popularity measures reach, not what this user values. Ranking uses affinity to the author, predicted quality and freshness.

What does a diversity pass in feed ranking do?

Answer: Lowers the score of repeat posts from the same author so one person cannot fill the screen. Greedy re-ranking discounts each extra post from an author already shown, keeping the top varied.

What does the freshness half-life control?

Answer: How fast a post loses score as it ages. A short half-life favours new posts; a long one lets strong older posts stay on top.

See it happen in the simulation →

news feedfeed rankingfacebook news feededgerankrankingrecommendationclickbaitsystem design interview

More in design interviews