Skip to content
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

Optimize OrchestrationState persistence in commit log #94

Merged
merged 4 commits into from
Dec 23, 2021

Conversation

sebastianburckhardt
Copy link
Member

Previously, the latest orchestration state was saved to the commit log on every workitem commit.
This is somewhat redundant, because almost all fields, meaning all fields except the custom status are already implied
by the event history.

Thus, in this PR the OrchestrationState is no longer persisted; instead, only the new events, and the new custom status (if there is one) are persisted, which is sufficient to reconstruct the OrchestrationState if it should be needed when recovering from the commit log.

@sebastianburckhardt sebastianburckhardt added this to the 0.7.0-beta milestone Dec 21, 2021
# Conflicts:
#	src/DurableTask.Netherite/PartitionState/InstanceState.cs
# Conflicts:
#	src/DurableTask.Netherite/PartitionState/SessionsState.cs
@sebastianburckhardt sebastianburckhardt merged commit beaeeb7 into dev Dec 23, 2021
@sebastianburckhardt sebastianburckhardt deleted the pr/store-diff branch December 23, 2021 00:37
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.

1 participant