Infinite pagination can be problematic.

- Encourages endless scrolling
- Decreased performance
- Crawlers can easily slurp up data
- Can become a ripe target for AI

I'm very aware of this, and created a CursorToken pagination helper that enforces max result limits using signed cursor pagination tokens.

We're using this throughout Loops for various endpoints, and it works very well!

github.com/joinloops/loops-ser

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/dansup/statuses/115791203722706530 on your instance and quote it. (Note that quoting is not supported in Mastodon.)