https://kotlinlang.org logo
#http4k
Title
# http4k
d

dave

05/29/2019, 6:39 AM
@Razi Kheir np. have a look here and just yell if you need any more help. 🙃 https://www.http4k.org/guide/modules/clients/
😀 1
r

Razi Kheir

05/29/2019, 6:40 AM
Thanks a bunch, your a life saver, maybe I need more coffee today xD didn’t even see that!
😊 1
One more! I see netty is not mentioned as a supported client, but I also saw that it had some issues on benchmarks, should I switch to Jetty or apache for client and backend?
d

dave

05/29/2019, 7:06 AM
The Netty backend seems to have some issues which we've never managed to reproduce (there's an open issue on it), compounded by the fact that we've never used it in prod to find out. My preferred stack is undertow for the backend (which is Netty under the covers) and OkHttp for the client, but tbh it really comes down to what you're most happy configuring and working with. If you need websockets then Jetty for the backend is your only choice currently.
👍 1
r

Razi Kheir

05/29/2019, 7:10 AM
Thanks!
f

fredrik.nordin

06/03/2019, 9:14 AM
Pedant alert: Undertow doesn't use Netty, it uses XNIO (http://xnio.jboss.org/).
d

dave

06/03/2019, 11:18 AM
@fredrik.nordin ah - interesting. thanks for clarifying. 🙂
But I did remember reading somewhere (official) that someone actually recommended using Undertow for this kind of purpose as opposed to Netty.
f

fredrik.nordin

06/03/2019, 11:19 AM
Undertow is very stable. We use it as the server impl at my current gig too.
👍 1
4 Views