API Design · Junior · Question 27 of 75
Why should list endpoints be paginated?
- 1Pagination is only for SEO
- 2HTTP limits responses to 100 items
- ✓Correct answer: Returning all items at once gets slow and memory-hungry as data grows, for both server and client
Explanation
Set a default and a maximum page size so one request can't ask for millions of rows.