6. Design a News Feed
Build a paginated feed that handles high-fan-out authors, fresh posts and visibility changes.
ClassicMedium
Pick a system. Work through the problem. Compare your approach.
Company tags are community-reported. Counts on cards show how many people reported that design.
Build a paginated feed that handles high-fan-out authors, fresh posts and visibility changes.
Building a timeline when someone opens the app means reading from everyone they follow and merging — slow, and slowest for the most active users. Building it when someone posts makes reads a single lookup, but one post by an account with fifty million followers becomes fifty million writes.