Thanks for sharing! 2 different questions..
I guess the easiest is if you use coroutines from the beginning. But if you do not, and in an WebMVC, jdbc and resttemplate application - what would be the best way porting it to coroutines without changing everything at the same time?
Would you go layer by layer, or package by package? Even if parts are divided into packages, there are still dependencies between the packages.
At the same time I do have limited use of the coroutines in general, there are some restTemplate-calls that i would like to do parallell, but those can be solved using
runBlocking(Dispatchers.VT + MDCContext()) {
This should work even if the
runBlocking
is done within a transaction but does no blocking-db-calls itself, right?