Skip to content

How to implement blocking code in a non blocking rest resource? #48287

Answered by cescoffier
cwansart asked this question in Q&A
Discussion options

You must be logged in to vote

I would start with blocking / worker thread. If the performance and concurrency are enough, you can stop here.

If the two blocking operations can be done concurrently, using virtual threads or Mutiny will help reduce the duration of the operation.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cwansart
Comment options

Answer selected by cwansart
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