Skip to content

This repository breaks down learning of reactive types such as Mono and Flux. This repository contains examples using these reactive types in Spring5 Web Flux Framework

Notifications You must be signed in to change notification settings

VineethRamakrishnan/spring-web-flux-reactive-types

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-web-flux-reactive-types

This repository breaks down learning of reactive types such as Mono and Flux. This repository contains examples using these reactive types in Spring5 Web Flux Framework

Documentation:

What is a Reactor ?

Reactor = single threaded event loop that receives and processes requests.

What is Reactor Pattern ?

The reactor design pattern is an event handling pattern for handling service requests delivered concurrently to a service handler by one or more inputs. The service handler then demultiplexes the incoming requests and dispatches them synchronously to the associated request handlers.

What is event loop ?

REST endpoint mappings:

Endpoint Description Result
/flux/strings returns flux of strings created using Flux.just() "BARATH"
/flux/fromArray returns flux of strings created using Flux.just() "BARATH"
/flux/concat returns flux of strings created using Flux.just() "BARATH"
/flux/merge returns flux of strings created using Flux.just() "BARATH"
/mono/string returns flux of strings created using Flux.just() "BARATH"
/mono/string/delay returns flux of strings created using Flux.just() "BARATH"
/mono/doOnNext returns flux of strings created using Flux.just() "BARATH"
/mono/int returns flux of strings created using Flux.just() "BARATH"
/flux/user/one returns flux of strings created using Flux.just() "BARATH"
/flux/fromIterable returns flux of strings created using Flux.just() "BARATH"

How to build and run the project?

  1. Clone the repository
  2. Maven build
./mvnw clean install

  1. Run as spring boot app:
./mvnw spring-boot:run

References:

http://musigma.org/java/2016/11/21/reactor.html http://javasampleapproach.com/reactive-programming/reactor/reactor-how-to-combine-flux-mono-reactive-programming

About

This repository breaks down learning of reactive types such as Mono and Flux. This repository contains examples using these reactive types in Spring5 Web Flux Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 59.2%
  • Shell 23.0%
  • Batchfile 17.8%