Infinite scroll cursors
In an endless iOS list like a pin board, you want to stop the same item showing twice or the next page going missing. If you use a cursor instead of an offset, what state would you store alongside it?
In an endless iOS list like a pin board, you want to stop the same item showing twice or the next page going missing. If you use a cursor instead of an offset, what state would you store alongside it?
Store the server's opaque cursor from the last successful response, bundled with hasMore, the in-flight request, and a key identifying which feed (sort, filter) it belongs to, so you never request the same cursor twice or reuse another feed's cursor.
iOS system designShort answerBasics
For a mobile feed, would you paginate by offset or by cursor (keyset)? Justify it with…
#pagination #cursor
iOS system designMultiple choiceBasics
You're loading a feed with offset pagination. While the user is reading page 2, 3 new…
#pagination #cursor
iOS system designShort answerExpert
Design the comment feed page for a community app. Constraints: comments are shown flat…
#pagination #cursor
iOS system designShort answerAdvanced
An iOS app implements infinite scroll for a photo feed seen by hundreds of millions of…
#pagination #cursor