Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support client-side specification of consistency for DescribeWorkflowExecution and GetWorkflowExecutionHistory #6789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

c-warren
Copy link
Contributor

@c-warren c-warren commented Apr 4, 2025

What changed?

Added (internal) for the DescribeWorkflowExecution and GetWorkflowExecutionHistory RPCs.

Why?

The QueryWorkflow RPC already supported defining a consistency level (eventual or strong) to allow consumers to force redirection to the active cluster when strongly consistent reads are required at the cost of latency.

Many customers have requested a similar setup for these additional read APIs. This PR adds support and creates a pattern for adding new APIs in the future.

How did you test it?

Added unit tests at the api and policy layers.

Potential risks

Release notes

No migrations are required.

Documentation Changes

N/A

c-warren added 3 commits April 3, 2025 17:57
Some clients require strong consistency for reads on the DescribeWorkflowExecution and GetWorkflowExecutionHistory rpcs, and are willing to accept the latency trade-off.

This adds internal support for endpoints to define a consistency level.
@c-warren
Copy link
Contributor Author

c-warren commented Apr 4, 2025

Note: Prior discussion was had on the PR here: c-warren#1

@c-warren c-warren merged commit 1490221 into cadence-workflow:master Apr 7, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.