5 ms·
If consistency is really important, don't paginate on the backend at all. The only way to win is not to play the game. That said, using “page of results preced
by dragonwriter 6y ago
If consistency is really important, don't paginate on the backend at all. The only way to win is not to play the game.
That said, using “page of results preceding <first id if following page>” and “page of results following <last id of preceding page>” reduces obvious pagination artifacts compared to <page number n>. Whether it's better to beat consumers over the head with inconsistency due to concurrent changes probably depends on the application or provide a nearer illusion of consistency probably depends on application domain and use case.