Hey folks, I’m working on a Ktor application that ...
# server
t
Hey folks, I’m working on a Ktor application that acts like a gateway between our app and the backend. Its only purpose is to combine multiple http requests into one for the app. In general communication between backend services is wrapped in Hystrix commands. I’m now wondering if this is also feasable for my Ktor service. The call to the other services should happen in parallel and I wanted to leverage coroutines for that, but when I now use Hystrix inside a Coroutine I end up starting a thread again, right? Do I have to use something like the Ktor client, which implements suspending functions around the http requests, or would it be fine (aka performant) to use Hystrix and just start a thread? Or is there maybe even a Hystrix alternative I could use in this particular case?
l
You can also ask in #ktor
👍 2
t
Do you think it would be okay to just post a link to the message there? Don’t want to spam the guys here.
👌 1