As the volume of data increases, pagination becomes an integral part of software development. Instead of returning a huge chunk of data in a request, pagination divides and returns data to clients in smaller batches.

Cons for infinity scroll:

Infinity scroll : 1 - Data is Structured( you don't how many pages are there). 2 - Infinity data(you don't know how many pages there are, the user is just scrolling). 3 - It is harder to view the specific page( scroll from bottom to top or top to bottom. 4 - The infinity scroll doesn't give access to the footer. Some kinds of designs need a footer to be shown, so you can't use Infinity Scroll.

Types : Fronted pagination: browser level. < 1 2 3 4 5 6 ... > Fetch all the products(200000) at once(one API call) and store it on the redux store or local state and then display a few products. Display the remaining products using pagination.

Pros :