spring-boot

Reactive java combining Mono(s)

Reactive Java: combining Mono(s)

Reading Time: 4 minutes Reactive programming has been a good to go approach with the microservices architecture. Here we will see how it can be achieved using spring web flux MONO Api and what could go wrong if we do not consider the basics of the reactive environment.

Spring Interceptors: How to use them correctly?

Reading Time: 2 minutes Hi folks! we’ll focus on understanding the Spring Interceptors and how to use it correctly. What is Spring interceptors When a request is sent to spring controller, it will have to pass through Spring Interceptors (0 or more) before being processed by Controller. Spring Interceptor is only applied to requests that are sending to a Controller. Spring Interceptor – HandlerInterceptor preHandle(): This method is used to intercept the request before Continue Reading

Passing query parameters through your WebClient

Reading Time: 5 minutes We can use spring-boot:webflux’s WebClient to invoke a third-party service from within our spring boot application. This is asynchronous and reactive method supplied by spring for invoking of unmanaged services. We also saw how we can pass query params when invoking a 3rd party service and which case to chose with our requirements. Be cautious with what you are using and always document what you want and what you created so that things like these can be caught early during the development phase.

Spring Boot Webflux: The functional approach

Reading Time: 3 minutes With the world moving towards the reactive and functional ways of programming, Spring also turned its steps on the same path. This leads to the origin of Spring Webflux. To understand the functional approach towards it, we first need to understand, what is Spring Webflux exactly? Before Spring version 5.0, the original web framework included in the Spring Framework, Spring Web MVC, was built for Continue Reading