Design a News Feed – Defend
8 min · Step: defend
Design a News Feed – Defend
Interviewers may push:
-
"What if a user follows 10M people?"
Push would be impractical. Use pull or hybrid; consider ranking/sampling. -
"How do you handle spikes?"
Cache aggressively, queue writes, auto-scale read replicas. -
"What about real-time?"
Add a notification/push layer; WebSockets or long polling for live updates.
Inline Check 1
How would you adapt your design if the interviewer says "Assume 100M DAU"?
<!-- quiz-candidate: true -->