Design a Social Feed
Design a social feed system where users can create posts, follow other users, and view a personalized home timeline. The system should support features such as ranking, pagination, and handling of post deletion or visibility changes. Assume that feed reads significantly outnumber post writes, and some authors may have a very large number of followers. The default feed order should be ranked but remain reasonably fresh, and infinite-scroll pagination must avoid duplicates or skips during concurrent posting.
Similar LeetCode problem: Feed System
AI interview prep
Core dilemma
Balancing the latency and consistency of feed generation for a large, active user base with potentially massive fan-out authors, against the high read-to-write ratio.
3 tradeoffs and 3 stress tests locked
Interview prep
Unlock the interviewer X-Ray rubric, tradeoff matrix, stress tests, clarifying questions, and key concepts.
Design a Social Feed
Design a social feed system where users can create posts, follow other users, and view a personalized home timeline. The system should support features such as ranking, pagination, and handling of post deletion or visibility changes. Assume that feed reads significantly outnumber post writes, and some authors may have a very large number of followers. The default feed order should be ranked but remain reasonably fresh, and infinite-scroll pagination must avoid duplicates or skips during concurrent posting.
Similar LeetCode problem: Feed System