Get the latest tech news
The Potential Pitfalls of Pagination
Pagination is a core part of many APIs, but many methods have hidden pitfalls. This post explores these common issues.
Pagination is a core part of many APIs - whether that’s lazily loading notifications, filling in financial transactions or retrieving references. If many users do this simultaneously, it can create a flood of requests, potentially leading to a self-inflicted DDoS (Distributed Denial of Service) attack. This is very simple to fix - simply adding a limit to the amount of records returned (potentially via a query parameter) transparently solves it.
Or read this on Hacker News