Recall & Review
beginner
What is the main goal of a news feed generation system?
To deliver a personalized, timely, and relevant list of posts or updates to users based on their interests and social connections.
Click to reveal answer
intermediate
Name two common approaches to generate a news feed.
1. Pull model: User requests feed and system fetches latest posts.<br>2. Push model: System precomputes and pushes feed updates to users.
Click to reveal answer
beginner
Why is caching important in news feed systems?
Caching stores frequently accessed feed data to reduce database load and improve response time, making the feed faster for users.
Click to reveal answer
intermediate
What role does fan-out play in news feed generation?
Fan-out is the process of distributing a new post to all followers’ feeds, either at write time (push) or read time (pull).
Click to reveal answer
advanced
How can a news feed system handle scalability for millions of users?
By using distributed databases, sharding user data, asynchronous processing, caching layers, and load balancing across servers.
Click to reveal answer
Which model precomputes and stores user feeds ahead of time?
✗ Incorrect
The push model precomputes feeds and pushes updates to users before they request them.
What is the main benefit of caching in news feed systems?
✗ Incorrect
Caching stores data closer to users, reducing latency and improving response time.
Fan-out at write time means:
✗ Incorrect
Fan-out at write time pushes new posts to all followers immediately.
Which technique helps scale a news feed system for millions of users?
✗ Incorrect
Sharding splits data across servers to handle large scale efficiently.
A hybrid feed generation model combines:
✗ Incorrect
Hybrid models use push for active users and pull for less active ones.
Explain how a news feed system can deliver personalized content efficiently.
Think about how the system knows what to show and how it handles many users.
You got /4 concepts.
Describe the trade-offs between push and pull models in news feed generation.
Consider when the feed is generated and how that affects system resources.
You got /4 concepts.
