System Design Patterns: From Fundamentals to Real Systems
Vote

0% completed

​

Cursor-Based Pagination

A price-comparison partner on the store's paid tier copies the whole product catalog every night. Its sync job asked the public API for two pages one second apart and received these two answers:

GET /api/partner/v1/products?page=2 at 01:00:00 { "page": 2, "total_pages": 12000, "products": [ { "id": 1249912, "name": "Desk lamp" }, ..., { "id": 1249801, "name": "Trail running shoe" } ] } GET /api/partner/v1/products?page=3 at 01:00:01 { "page": 3, "total_pages": 12000,

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content