API Cursor Pagination (Infinite Scroll) - Backend Engineering

🔗 PENDING EMBED — review: Notion bookmark —

This is a decent starting point to understand some of the concepts:
How to implement cursors for pagination in an api

First, let's start with a simple structure that uses an ID.

To make sure we are on the same page, the ID passed as the cursor can be thought of as last_seen , so you want to start AFTER that point in the DB.

Locked Content