Categories
Development

Pagination with Github, Reactor and Spring Webclient

I wanted to go beyond the basic example of extracting a single rest result from github rest API which is shown everywhere these days. So here it is, a simple base for Reactor API for Github. It showcases basic functionality of flatMap, recursive calls, custom subscribtion rate limiter implementation.

You can find the project here:

https://github.com/MavoCz/spring-webclient-reactor-test/tree/master

Test project for testing Spring 5.x Webclient, Reactor with Github.

Implements various showcase usecases as:

  • Download contributors (all pages) then download user details for them.
  • Showcases various styles of going through the contributor pages (recursive, concatMap, flatMap).
  • Subscribtion request rate limiter implementaion.