OiO.lk Blog java A loader as JAR Spring WebFlux reactive with Reactive Repository
java

A loader as JAR Spring WebFlux reactive with Reactive Repository


We wrote a spring application webflux reactive with ReactiveRepository that we deployed in a cloud run and it works fine launched by a GCP scheduler that call an API REST.

Now, our customer ask to reduce costs defining a job cloud run on GCP so we migrate from war to jar in a new Spring Boot Reactive webflux launched in a job cloud run by a trigger cloud scheduler that start this GCP job cloud run (as it’s done now in GCP).

We are noting that when we launch in local the code can’t read data in reactive from mongoDB and can’t manage Flux<record read/write/delete/update from mongoDb> in any type of operations on mongoDB using webflux ReactiveRepository.

We discovered that spring-batch module not support webflux reactive, and we haven’t spring-batch library in our pom.xml and in our code.

What is happening?

The jar program start and return 0 record from db on first read the code without exceptions, it’s identically with code of first project, only that in first project is an API REST (SpringBoot webflux reactive war) in the second is a batch application (SpringBoot webflux reactive jar) without spring-batch module.

Is for Jar program, Spring add automatically library spring-batch that I don’t found in target Maven Dependencies and this block ReactiveRepository mongodb and asyncronous multi thread Flux operations on mongoDB of webflux?

SpringBoot webflux reactive no print in console errors or exceptions as a Flux.error or Mono.Error or some error.

Thanks a lot for your help.



You need to sign in to view this answers

Exit mobile version