Offset pagination is simple (`page=10`) but can get slow on deep pages and can skip/duplicate items when data changes. Cursor pagination uses a stable “last seen” key, scales better, and is more consistent, but is more complex for clients and doesn’t support random page jumps well.
Expanding on the short answer — what usually matters in practice:
A tiny example (an explanation template):
// Example: discuss trade-offs for "offset-pagination-vs-cursor-pagination-—-what’s-"
function explain() {
// Start from the core idea:
// Offset pagination is simple (`page=10`) but can get slow on deep pages and can skip/duplic
}