Skip to content

Flux Spring5 and SpringBoot 2 Example to demo how Flux works in SpringBoot Web Application.

Notifications You must be signed in to change notification settings

shimaomao/fluxexample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebFlux Spring Boot Example

With the new Spring 5 and Spring Boot 2, there is now a new feature calling 'Reactive Web on Stack'. It allows non blocking requests between services on server or frontend side.

https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html

This is a Example how I understand it and have implemented in a solution.

Common

This Project uses Swagger 2 UI to allow some calls to test the block and non blocking situation. There is also implemented Flayway to run when the Spring Boot application run. (Provider project only)

Provider

This is the data provider and is connecting to a H2 database. It also has a wait implemented to simulate a huge service work. It can by configured in the application.properties. There is a Swagger UI implemented on the URL http://localhost:8088/

Consumer

This will consume the data from provider. To simulate the block or non blocking calls. You can call the Swagger UI on http://localhost:8090/

About

Flux Spring5 and SpringBoot 2 Example to demo how Flux works in SpringBoot Web Application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages