I have an endpoint which connects to postgres db and returns the data back to the client. And the endpoint is looks like below
public Multi<String> getData(RequestBody body) { // application code }
Q) How to implement circuit breaker for Mutiny , where return type is Multi
Anything to help better understand will be of real help.
>` is a more appropriate return type, and that supports fault tolerance in a straightforward way. (Out of interest, how would you imagine a circuit breaker works for a stream of data?)
– Ladicek Jul 20 '22 at 17:56>`. Then, you can just add `@CircuitBreaker`.
> , there is an option to convert this to Uni
– Jaiprasad Jul 21 '22 at 09:27> , and the reason we should be returning Uni is because fault tolerance does not support Multi , is that right ?
>.
– Jaiprasad Jul 21 '22 at 15:21