Grokking the Modern Frontend System Design Interview
0% completed
Pagination with Offsets and Cursors
A shopper writes to Basket's support team: "I was scrolling through the new arrivals in the dairy section and saw the same oat milk twice. My friend says a new yogurt was added this morning, but it never appeared on my list."
Neither problem is in the screen's drawing code. Both come from the way the list asks the server for its next 30 products while the products themselves are changing.
The sections below explain why that happens, compare offset and cursor pagination, and then choose between infinite scroll, numbered pages and a "Load more" button for Basket.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%