Skip to content

Uni().onFailure().withBackoff(x,y).atMost(z) is executed on a worker thread causing Hibernate-Reactive to throw #1248

Answered by jponge
dimitar-epitropov asked this question in Q&A
Discussion options

You must be logged in to vote

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-

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dimitar-epitropov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants