HI there. I'm working on spring-boot-kotlin and tr...
# server
r
HI there. I'm working on spring-boot-kotlin and trying to replace apache-http/okhttp to CIO. Can I get a performance comparison?
g
CIO is probably slower, just less optimized But if you really want to get real comparison, you should measure it for your usecase, not some generic benchmark
d
If you are using Spring then also take a look at their Webclient
r
I just wanna coroutine base client cause less resources than thread. I'm managing like gateway server using many http request and that is not special it just simple get/post call.
g
But Spring WebClient already non blocking and can be easily used with coroutines, so i doubt that you
r
What are the benefits using webclient? CIO is very simple via ktor-client-engine. ah.. I'm using Ktor-client(apache-http/okhttp engine).
g
Well, if you already use spring boot, webclient looks as a native solution, doesn’t require bringing additional dependencies like ktor
👍 1
r
ok. I will try. thanks
v
just use webclient It also has a suspended method call awaitBody