Skip to content

RicardoGeek/spring-reactive-books

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring WebFlux And Reactive Streams Example

Sample project that handles an in-memory library of books related to reactive programming in java.

Endpoints

[GET] /libro

Gets all the collection of books stored in memory

[GET] /libro/{id}

Gets a specific book with the id in the url

[POST] /libro

Saves a new book to the collection

Highlights

BookHandlerImpl

This class holds all the handling methods for the reactive routes defined in Server

BookRepositoryImpl

The actual collection of books. The guardarLibro method returns a Mono which can be streamed to get the save result.

Server

Defines an embedded tomcat that defines the app routes and consumes the handler methods.

Client A small class that consumes the reactive endpoints of the library.

Resources

This is a repository to complement the information in this post (in spanish):

Programación Reactiva Con Spring 5

About

A demo application showing how to use spring-webflux and reactive-streams.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published