forked from cadence-workflow/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for caching workflowExecutionContext in history service (cade…
…nce-workflow#19) Moved WorkflowExecutionContext to its own file. It now has lock which can be used to make sure only one operation on workflow execution is outstanding at any given time. It clears the state for workflow execution if update fails with conditional update failure. Also sets next event ID on the history builder when it goes through. Added implementation for LRU cache which can be used for caching workflow execution context. Added historyCache implementation which is the wrapper used by history engine to initialize the LRU cache for caching workflowExecutionContext. Added refresh logic to update cache when it detects an event ID greater than largest event ID ever seen inside the cache.
- Loading branch information
1 parent
d9bfa1a
commit 5529342
Showing
15 changed files
with
972 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.