-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Describe the feature
The latest major release of OkHttp, released a few months ago, introduces several significant enhancements detailed in their changelog (https://square.github.io/okhttp/changelogs/changelog/). A particularly notable improvement is the support for virtual threads. This feature is crucial as it addresses the inefficiencies in handling high-load scenarios where the current versions (3 and 4) of OkHttp resort to creating a large number of threads, up to 128 by default.
Is your feature request related to a problem?
Under high-load conditions, the current implementation of OkHttp tends to create an excessive number of threads, which can lead to increased resource consumption.
Proposed Solution
Develop an OkHttp5 engine integration that includes configuration options for utilizing virtual threads. This will optimize performance and resource management in high-load environments by reducing the need for numerous physical threads.
Describe alternative solutions or features you've considered
One possible workaround could be to reduce the concurrency level. However, this approach merely obscures the underlying issue rather than addressing it effectively. Integrating OkHttp5 with support for virtual threads presents a more robust and forward-looking solution.
Acknowledge
- I may be able to implement this feature request
AWS SDK for Kotlin version
1.5.x
Platform (JVM/JS/Native)
JVM
Operating system and version
Linux