Skip to content

Pollers should use just one thread to perform async gRPC requests #1456

@Spikhalskiy

Description

@Spikhalskiy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions