rezaarshad / Spring-Webflux-Cache

Spring Webflux and blocking cache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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://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

About

Spring Webflux and blocking cache


Languages

Language:Java 97.4%Language:Dockerfile 2.6%