Micronaut Reactive Using @Error with ReactorHttpClient
I have an api with 2 layers Controller and Service with Micronaut,Kotlin & Project Reactor. This application needs to handle requests in non-blocking manner.
I have a Post function makePayment method as below
fun makePayment(payment: Payment):Mono in class PaymentController
This calls a service class PaymentService which also has the same function as above.
This service internally uses io.micronaut.reactor.http.client.ReactorHttpClient to make the payment with Bank.
What is the right way...