-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Memory limiter: dump and restore functionality #40
Comments
@sido420 This is interesting idea. It would be definitely useful to have such feature in some cases. |
It came from the popular LRU cache nodejs module, see https://github.com/isaacs/node-lru-cache. I think it'd be a huge benefit for single node setups where external storage is unavailable. Or, even multi process setups with sticky sessions etc. or even without sticky sessions it might be of help. Quick app prototypes should also benefit from it :) |
@sido420 Yeah, I think so. Community would appreciate it. Let us know if you started to implement it, so nobody else does the same in parallel. Thanks. |
No, I haven't started any work on it. I will comment here if I plan on doing so (not anytime soon). |
I stringified _storage in memory storage and got the following:
Can you tell me what needs to persist so it could be restored at startup? |
@sido420 |
I was thinking if we could add a dump/restore functionality to this module.
Due to the nature of nodejs process, if it goes down we loose everything stored in the in-memory db.
What are your thoughts?
The text was updated successfully, but these errors were encountered: