HardScenarioClassic design problems
Design a news feed such as a social timeline.
What a good answer covers
Choose fan-out on write for ordinary users by pushing post ids to followers' feed caches and fan-out on read for celebrities, merge at read time, rank with a score, paginate by cursor and store posts and the graph separately.
PreviousDesign a rate limiter for an API gateway.Next Design a chat application with one-to-one and group messaging.