Design Feed (Timeline) #19

Design Feed (Timeline) #19

Hard Programming Interview System Design 17 views
Explanation Complexity

Problem Statement

Home feed like Twitter: rank posts and serve fast.

Example Solution (Public)

Programming Interview
Choose pull vs push model. For large scale, precompute timelines for active users (fan-out on write) and store in a sorted set. Cache pages, use ranking service, and backfill with pull for long-tail users.

Official Solution Code

Choose pull vs push model. For large scale, precompute timelines for active users (fan-out on write) and store in a sorted set. Cache pages, use ranking service, and backfill with pull for long-tail users.
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.