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

Extract historical state mgmt into a datastore #279

Merged
merged 2 commits into from
Oct 18, 2023
Merged

Conversation

joepavitt
Copy link
Collaborator

@joepavitt joepavitt commented Oct 18, 2023

Description

Further extension of the work already pushed in #275 and linked to fixes for #170 and #213.

The fix in #275 fixed a mismatch for referring to node. when receiving client events, what this then affected was our state management, where node._msg was lost in the old instance of node, so on refresh/re-deploy, this data was lost (previously it had maintained the event handlers on the old node).

In this PR, I have extracted all server-side state management out of node._msg pattern and into a common datastore service. This will also be beneficial for third-party integrations, as they can extend that same datastore, and not need to build their own solutions.

Adds "state management" documentation, and updates the events architecture diagram.

Checklist

@joepavitt joepavitt merged commit 1bc99cb into main Oct 18, 2023
1 check passed
@joepavitt joepavitt deleted the 213-datastore branch October 18, 2023 18:21
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