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

Snapshot support #2

Open
Antman261 opened this issue Aug 11, 2021 · 0 comments
Open

Snapshot support #2

Antman261 opened this issue Aug 11, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Antman261
Copy link
Collaborator

Antman261 commented Aug 11, 2021

  • es-reduxed saves a snapshot each n-many events
  • snapshots saved by providers -- postgres could have a snapshots table storing current state in a JSONB column
  • snapshots could be keyed by the git hash of the latest commit within the user's reducer folder, for easy versioning of snapshots with reducer changes.
  • Configurable number of events per snapshot

Hairy problem: How do I support snapshotting with multiple instances? First instance to save a snapshot wins? Take out a table level lock and use that as my mutex?

@Antman261 Antman261 added the enhancement New feature or request label Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant