4 ms·
Cursor based pagination makes sense. At a certain scale every part of your API becomes something you need to support, and that includes pagination. This makes i
by orf 4y ago
Cursor based pagination makes sense. At a certain scale every part of your API becomes something you need to support, and that includes pagination. This makes it super difficult to change the storage you use, as suddenly you need to support integer based offsets rather than opaque tokens.
- duskwuff 4y agoCursors also mean you get more predictable behavior when interacting with data that's changing under you. Imagine scrolling back through an active chat, for example -- you wouldn't expect each page to contain some of the same chat messages that are already on screen.