API Design

Dated Jun 6, 2026; last modified on Sat, 06 Jun 2026

Notes

For 90% of interviews, default to REST, which maps resources to URLs and uses HTTP methods to manipulate them, e.g., POST /events/{id}/bookings for creating a booking.

When returning large result sets, pagination comes into play. Cursor-based pagination works better for real-time data where new items get added frequently. Offset-based pagination is fine for most cases.

How does cursor-based pagination beat offset-based pagination for new additions? Aren’t new additions invisible to inflight paginations?

References

  1. Core Concepts for System Design Interviews. www.hellointerview.com . Accessed Jun 6, 2026.