Skip to content

Add size-based cache config flags for history event and execution cache #6817

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

Merged
merged 1 commit into from
Apr 14, 2025

Conversation

timl3136
Copy link
Member

What changed?
Added dynamic config flags for enabling size-based caching in the history event and execution caches. These flags propagate to the cache layer and activate size-based behavior when enabled. A new config for controlling the byte size of the execution cache was also introduced (the event size config already exists).

Why?
This allows us to gradually roll out size-based caching per component and provides a quick rollback mechanism if needed. Without feature flags, every change would require a PR and release, which is inefficient and time-consuming.

How did you test it?
Local env tests as well as unit tests.

Potential risks
Minimal risk, as the new flags default to false and won’t impact behavior unless explicitly enabled.

Release notes

Documentation Changes

@timl3136 timl3136 merged commit 8376a05 into cadence-workflow:master Apr 14, 2025
23 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.

3 participants