System Design · Junior · Question 16 of 75

Why does an API return a list page by page (pagination)?

Explanation

Large responses are slow to transfer and burden the database and browser memory. Pagination can be offset-based (?page=3&limit=20) or cursor-based (?after=abc). In the UI: page numbers, "Load more" or infinite scroll.

Further reading

Problem with a question

System Design · Junior · question 16

Test yourself

Take the System Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz