Pagination is a topic which is needed to implment some functionity in real as well as comes across a lot of times in a system design interview. But I don't find any good resources on how it is actually done or how to approach it from interview perspective. For example, in order to design a fetch API which matches 1000s of results, we obviously can't show them on single page. There needs to be pages with some fixed page size, and some order, which can be relevance, time, length etc.
Can someone tell me how to approach it in a system design interview or share resources for same?