26
How would you design a scalable activity feed for a social platform?
Tap to write answer
0 words | 0 charsPress Enter ↵ to reveal
Your Attempt
0 wordsRefined Model Answer
ReferenceBefore designing it, I would clarify whether the feed is based on follows, recommendations, or a mix of both, because that changes the ranking and storage strategy. At a high level, I would separate event ingestion, feed generation, ranking, and delivery so each part can scale independently. For recent activity, I would likely precompute some feed data for fast reads, but I would keep a fallback path that can assemble the feed on demand if needed. The reason I choose a hybrid approach is that it balances latency and freshness better than a single strategy. I would also discuss caching, pagination, duplicate suppression, and failure handling because those are the parts that matter most in a production feed system.