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

More performant persistence of state #201

Open
bajtos opened this issue May 3, 2023 · 0 comments
Open

More performant persistence of state #201

bajtos opened this issue May 3, 2023 · 0 comments

Comments

@bajtos
Copy link
Member

bajtos commented May 3, 2023

This is a follow-up to the discussion in #198 (comment).

We should move the code writing state updates to the state file off the main thread to avoid blocking the event loop.

For example, we can spawn a new thread that will periodically flush updates to disk. That requires a graceful shutdown (see #143) to flush the last update during the shutdown.

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

No branches or pull requests

1 participant