Golang Microservices: Pagination using Elasticsearch



Golang Microservices: Pagination using Elasticsearch

Golang Microservices: Pagination using Elasticsearch

We previously covered using Elasticsearch for searching records, but what about when we need to implement pagination? how can we implement it? This time we cover that case using the Search API in ElasticSearch and the different requirements, like mappings, that we need to properly do that.

* ElasticSearch Paginate API: https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html
* ElasticSearch Search API: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html

RELEVANT LINKS

* Example code: https://github.com/MarioCarrion/todo-api-microservice-example/tree/fbaaa6f769bcc415b2b38dfcdd69bc08072400e7

* “Golang Microservices: Searching with ElasticSearch”: https://youtu.be/ZrdbQRYst5E
* “Golang Microservices: REST APIs – OpenAPI / Swagger” https://youtu.be/HwtOAc0M08o

* Playlist “Learning Golang”: https://www.youtube.com/playlist?list=PL7yAAGMOat_F7bOImcjx4ZnCtfyNEqzCy
* Playlist “Building Microservices in Go/Golang”: https://www.youtube.com/playlist?list=PL7yAAGMOat_Fn8sAXIk0WyBfK_sT1pohu
* Playlist “Software Architecture in Go/Golang”: https://www.youtube.com/playlist?list=PL7yAAGMOat_GCd12Lrv_evJ3Zhv1dl8B-
* Playlist “Golang Tools and Packages”: https://www.youtube.com/playlist?list=PL7yAAGMOat_HEEOvH99agDs_5g51A0Ls3
* Playlist “Testing in Go”: https://www.youtube.com/playlist?list=PL7yAAGMOat_HSeW4zF0uRL9EaHadE4ZZq

00:00 Start
00:12 How does pagination work in ElasticSearch?
02:09 Demo using Elastichsearch and Pagination
11:04 Conclusion

Who am I:

HelloπŸ‘‹πŸΌ! I’m Mario, a Hands-on Software Architect and Lead Backend Engineer with more than 16 years of professional experience building all kinds of software including on-premise Industrial Automation Systems, Linux Accessibility Desktop and Browser Components as well as Distributed Advertising Microservices.

Every week I will share with you different topics I’ve learned while working for small startups and large companies including the processes I’ve followed over the years for successfully delivering complex enterprise systems from start to end.

Subscribe if you like Software Development, Software Architecture and Systems Design!

Keep it up. Don’t give up!

#golang #microservices #programming

— Our affiliate links below

Shop our Amazon favorites β†’ https://www.amazon.com/shop/rubycarrion
Shop my IG feed on my LIKEtoKNOWit (LTK) page β†’ https://www.liketoknow.it/RubyCarrion
Shop Top Deals and Featured Offers at Best Buy β†’ https://bestbuy.7tiv.net/c/2558226/687081/10014
Get a 30 day FREE Trial of Epidemic Sound β†’ https://www.epidemicsound.com/referral/szx441/
Try Amazon Prime 30-day FREE Trial β†’ https://amzn.to/3yf9a0f
I love getting Cash Back and think you will too! Join for FREE and get $30 when you spend $30. https://www.rakuten.com/r/RUBYRA132?eeid=28187

— Our Vlog Channel

https://www.youtube.com/c/RubyCarrion/videos

Comments are closed.