In production should I just be using the Apache cl...
# http4k
k
In production should I just be using the Apache client?
Is there one you'd recommend? Binary size isn't a concern and we don't really need any real features.
d
I personally default to OkHttp, but for no particular reason. They're all solid performers. I'd probably choose Jetty last because I've never used it in prod personally.
k
Sweet thanks
d
OkHttp also has an easy way to configure listeners so you can measure things like DNS lookup latency, which is pretty niche, but useful
k
I've been using OkHTTP for requests, but our the server mostly just talks to a database and server as an HTTP end point.
d
BTW, you can test the entire thing without using an HTTP client - because of the symmetric interface you can just replace the OkHttp() interface with your app and test completely in-memory