Functional Spring Cookbook
Disclaimer
Samples in this repo try to use functions as much as possible rather than annotations. This is not always the best practice.
This sample shows the simplest WebFlux.fn application.
This sample shows how to use Functional Bean Registration instead of @Bean
annotation config.
This sample shows how to use a http client (WebClient
).
This sample shows how to use a simple retry
operator.
This sample shows how to use reactor.retry.Retry
from reactor-addons instead of retry
operators.
This sample shows how to cache a result using java.util.concurrent.ConcurrentHashMap
and reactor.cache.CacheMono
from reactor-addons.
This sample shows how to cache a result using Caffeine and reactor.cache.CacheMono
from reactor-addons.
This sample shows how to validate an input using Bean Validation.
This sample shows how to validate an input using YAVI.
This sample shows how to use circuit breaker using Spring Cloud Circuit Breaker and Hystrix
This sample shows how to use circuit breaker using Spring Cloud Circuit Breaker and Resilience4j
This sample shows how to access H2 database using R2DBC and DatabaseClient
from Spring Data R2DBC
This sample works as same as hello-fluxfn but does not use Spring Boot.
This sample works as same as vanilla-fluxfn but does not use even ApplicationContext
(DI Container).
This sample shows the simplest WebMvc.fn application.
This sample shows how to use Functional Bean Registration instead of @Bean
annotation config.
This sample shows how to use a http client (RestTemplate
).
This sample shows how to validate an input using YAVI.
This sample shows how to use circuit breaker using Spring Cloud Circuit Breaker and Hystrix
This sample shows how to use circuit breaker using Spring Cloud Circuit Breaker and Resilience4j
This sample shows how to access H2 database using Spring JDBC.