Design: News Feed — Concept Check
Questions on Design: News Feed. A news feed (Facebook, Twitter/X) aggregates posts from followed users and ranks them for display. The core trade-off is fan-out on write (pre-compute feeds) vs fan-out on read (compute at request time).
Questions in this quiz
8 questions on Design: News Feed — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A user with 50,000 followers posts an update. Which approach is likely used to handle this post efficiently in a hybrid news feed system?
- AUse a combination of fan-out on write and read
- BFan-out on read to fetch posts on demand
- CFan-out on write to all followers' feeds
- DIgnore the post to reduce system load
2.When a user opens their feed and experiences a delay, what is the likely cause if the system uses fan-out on read?
- AThe system is writing posts to the user's feed cache
- BThe user's internet connection is slow
- CThe system is precomputing the user's feed
- DThe system is fetching and merging posts in real-time
3.A celebrity with 15 million followers posts a video. How does a hybrid news feed system handle this efficiently?
- APush the video to all followers' feeds immediately
- BFetch the video on demand when followers open their feeds
- CPrecompute feeds for a subset of followers
- DUse a separate server to handle celebrity posts
4.A user complains that their feed shows too many posts from one friend. What ranking signal might be improperly weighted?
- ADiversity
- BEngagement
- CRelationship
- DRecency
5.Which signal is NOT typically considered in feed ranking algorithms?
- AContent type
- BRecency
- CEngagement
- DUser's device type
6.What happens if a system using fan-out on write encounters a user with 20 million followers?
- AThe system ignores the post
- BThe system switches to fan-out on read for efficiency
- CThe system crashes due to overload
- DThe system writes to all 20 million feeds, causing a bottleneck
7.A developer believes that fan-out on write always results in faster feed reads. Is this true?
- AYes, because it reduces server load
- BNo, because it depends on the number of followers
- CYes, because feeds are precomputed
- DNo, because it can cause write bottlenecks for celebrities
8.What is the primary advantage of using a hybrid approach for news feeds?
- AIt simplifies the feed ranking process
- BIt eliminates the need for real-time computation
- CIt balances read and write efficiency based on user type
- DIt reduces server costs significantly