System Design · Middle · Question 3 of 75

How would you design an infinite feed with thousands of posts?

Explanation

A sentinel element near the end of the list triggers loading the next page. Virtualization keeps only visible items in the DOM. Also consider: restoring scroll position when navigating back, images with explicit dimensions, new posts at the top without the feed "jumping".

Further reading

Problem with a question

System Design · Middle · question 3

Test yourself

Take the System Design · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz