Building APIs: A Comparison Between Cursor and Offset Pagination?
2 by kasrakhosravi2 | 0 comments on Hacker News.
I have been mostly relying on offsets for implementing paging. It is more straightforward in implementation but I find cursor based pagination more intuitive in usage; plus it has better support for real-time data but on the negative side you are forced to use infinite scroll which is not always the best solution. I was curious if anybody has any experience with these two approaches in their projects? And what are some other advantages and disadvantages on this? [1] [1] I wrote this piece a while back but was thinking of updating it further: https://ift.tt/3twUBTG