Uni().onFailure().withBackoff(x,y).atMost(z) is executed on a worker thread causing Hibernate-Reactive to throw #1248
-
We've hit an issue where using Uni retry with backOff and at Most hits this code:
We can see that if Is the fact that retries with backOff are executed on the worker-pool due to technological limitations (waiting during backoff is blocking). Will there ever be a possibility to do it on the event-loop thread? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We need a scheduled executor to perform the backoff logic, else we would indeed block an event-loop. Vert.x offers ways to execute an action back to the original event-loop context, see https://vertx.io/docs/apidocs/io/vertx/core/Context.html#runOnContext-io.vertx.core.Handler- |
Beta Was this translation helpful? Give feedback.
We need a scheduled executor to perform the backoff logic, else we would indeed block an event-loop.
Vert.x offers ways to execute an action back to the original event-loop context, see https://vertx.io/docs/apidocs/io/vertx/core/Context.html#runOnContext-io.vertx.core.Handler-