Cursor Pagination vs Offset Pagination: How to Page Through an API Properly
When to use cursor pagination or offset pagination in an API: why large offsets get slow, why pages repeat or skip items, keyset queries in SQL, opaque cursors, a Next.js route handler, response shapes, going backwards, and the mistakes I see most.
API Error Responses: How to Use Problem Details (RFC 9457)
How I design API error responses with Problem Details from RFC 9457: the application/problem+json format, what type, title, status, detail and instance mean, which status codes to use, validation errors with JSON Pointers, an Express error middleware, a fetch helper and what never to leak.
Idempotency Keys in 2026: Stop Duplicate Payments and Double Submits in Your API
Learn how idempotency keys stop duplicate payments and double submits: the Idempotency-Key header, Postgres and Redis storage, 409 and 422 handling, safe retries, and webhook dedupe.