square / okhttp

Square’s meticulous HTTP client for the JVM, Android, and GraalVM.
https://square.github.io/okhttp/
Apache License 2.0
45.78k stars 9.15k forks source link

Tune ConnectionPool pruning #3997

Closed swankjesse closed 1 year ago

swankjesse commented 6 years ago

It's been problematic in crawlers. https://github.com/apache/nutch/pull/328

yschimke commented 6 years ago

Do we have any indication of the % usage of OkHttp in

a) Android clients b) desktop/low volume clients c) servers/high volume clients

I've actually suggested some internal usage of c) look at other libraries (netty etc) because I don't have the same expectation that OkHttp will scale as well because of the threading model.

swankjesse commented 6 years ago

Yeah, I prefer small vs. scalable when the two are in conflict. For example, we don’t do any native code!

We can go toe-to-toe with Netty in all but the most extreme cases. We are very GC-friendly and small. And I also think OkHttp server is something we can do competitively if we get coroutines right.

yschimke commented 6 years ago

I’m using kotlin coroutines extensively in my client so that’s awesome to hear even for client only use

yschimke commented 1 year ago

Closing as a dupe of https://github.com/square/okhttp/issues/4530, a lot of overlap here.