Introduction to API Pagination

Introduction to API Pagination

Your DB may have hundreds or thousands or even millions of elements, it won’t be a good idea (regarding performance and UI/UX) to show all of the elements to the user in a single view, the answer to this problem is using pagination.

When building an app, it’s very likely you’ll have a list of elements stored in a database, and you want to show to users. for example, a list of restaurants in a food ordering app, a list of products on an e-commerce app, messages on messaging app, or even tweets on Twitter and posts on Facebook.

Your DB may have hundreds or thousands or even millions of elements, it won’t be a good idea (regarding performance and UI/UX) to show all of the elements to the user in a single view, the answer to this problem is using pagination.

What is pagination?

The goal is to return a subset of results with accessibility to all data. so the list is treated like a book, which is divided into a set of pages, and the user reads page by page, you can’t read the whole book at once, right?

Why use it?

  • User experience: Users can only consume a limited number of elements at once.
  • Performance: Returning less data is faster and cheaper.

software-engineering offset pagination cursor api

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Software Developer vs Software Engineer — Differences: Bogus or Real?

In this article, see if there are any differences between software developers and software engineers. What you’re about to read mostly revolves around my personal thoughts, deductions, and offbeat imagination. If you have different sentiments, add them in the comment section, and let’s dispute! So, today’s topic…

Top 10 API Security Threats Every API Team Should Know

Learn what are the most important API security threats engineering leaders should be aware of and steps you can take to prevent them

An API-First Approach For Designing Restful APIs | Hacker Noon

I’ve been working with Restful APIs for some time now and one thing that I love to do is to talk about APIs.

Public ASX100 APIs: The Essential List

The method used for this initial research was to obtain a list of the ASX100 (as of 18 September 2020). Then work through each company looking at the following

What Are Good Traits That Make Great API Product Managers

What is API product management and what can you be doing to be a better API product manager — get aligned with SaaS and enterprise software requirements. This guide lays out what is API product management and some of the things you should be doing to be a good product manager.