sdk-java icon indicating copy to clipboard operation
sdk-java copied to clipboard

Pollers should use just one thread to perform async gRPC requests

Open Spikhalskiy opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe. Currently, we allocate a lot of physical threads to perform blocking gRPC long poll requests. This doesn't make sense as it creates a lot of semi-active threads with a lot of context switching that just does a blocking io inside.

Describe the solution you'd like We should have two threads for Pollers. One for Workflow Task Pollers, one for Activity Task Pollers. They should handle all corresponding long poll requests in an async manner.

Spikhalskiy avatar Sep 25 '22 20:09 Spikhalskiy