So there is a thread for each simultaneous request, that waits for some response and passed it to ratpack’s computeExecutor, right? If so, are there a way to avoid blockingExecutor? In my case that blocking thread do nothing, someResponse could be passed to computeExecutor in someService’s executor, like:
I don't see significant performance degradation on creation and GC-ing that threads, but that behaviour it seems strange to me.
aww, I didn't get an idea of Promise.of() at first time I read documentation, so I used Blocking API and that was a mistake.
Actually, Promise.of() is only a thing I was looking for. So it works pretty good: