Skip to content

rezaarshad/Spring-Webflux-Cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

REST API

The spring cache APIs are still blocking and your services will not be fully reactive if you are using WebFLux with cache APIs. But there is hack-way using reactor cache add-on which can be used with Spring CacheManager. So until this blocking cache issue to be solved we can use this add-on.

Used Technologies and frameworks

  • Java 11
  • Spring boot
  • Spring Webflux
  • GuavaCache

Description

Store most recently used data in Cache.

Samples

Sample Request

GET http:https://localhost:8080/fruit/1

Run tests:

In order to compile and run the project you need to have Java 11 and Maven.

  • mvn clean compile
  • mvn test

Run project:

  • mvn spring-boot:run
    or
  • docker build . -t webflux/restapi
  • docker run -p 8080:8080 webflux/restapi