api-designbackendsystem-design
How should an API paginate changing data?
Anonymous
offset pagination is simple, but inserts before the next page can shift rows and cause repeats or skips. a cursor based on a stable, unique ordering key avoids that shift; include a tie-breaker when the sort field isn't unique. the tradeoff is that arbitrary page jumps are less convenient.
0