Grokking Modern API Design Interview
Vote

0% completed

Pagination from the Consumer's View

A collection contains 40,000 orders.

Returning all of them in one response helps nobody. The server has to serialize 40,000 records, the network carries data the caller cannot display, one slow request holds resources for too long, and the collection may change before the response is even finished.

So the list gets divided into pages. Saying "I will paginate" is not yet a contract.

.....

.....

.....

Like the course? Get enrolled and start learning!