ElasticSearch — This is how you should paginate your results

Whether you are building the next Google or a simple MVP, pagination is something you should be doing well from the beginning and that is something that is often missed.

Today, we will see two different approaches and which one is the most efficient one and that you should use it.

Let’s assume just for an example that we would have a social network and we would be building a functional requirement where the user would be able to search his/her followers and filter through them.