Using reactive[Mono/flux] inside JavaDelegate in spring boot app

Hi ,

We are having a JavaDelegate which internally calls another API which internally uses org.springframework.web.reactive.function.client.WebClient to access data. What is the best way to access the reactive response returned by web client.


I’ve been fiddling with the Spring WebClient lately. It depends on what your use case is.

As the JavaDelegate is blocking I am going to do a blocking call on the Mono or Flux. You can also fiddle with a blocking call with Duration or take so you don’t get an exception.


i did a blocking call but it resulted in timeout exception .What is the alternative.

If it resulted in a timeout exception it means that something else is not working. When you do Mono#block won’t that block indefinitely?