Skip to content

Rebuild cache when executing query requests to improve latency for query workflow #1132

Open
@longquanzheng

Description

@longquanzheng

Is your feature request related to a problem? Please describe.
Right now only executing sticky decision task can build sticky cache. But the sticky decision timeout is very short(only 5s by default). It can't be too large otherwise would cause potential workflow stuck during worker deployment.

Therefore, when workflow is waiting for something, e.g. large timer, the sticky cache would be invalid as there is no sticky cache to be used. Hence query workflow will have to replay the whole history.

Proposed Solution
Let executing query request to make some sticky choice on worker and build the cache.

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions