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

Move session persistance from application layer to Redis #81

Open
MathBunny opened this issue Jul 7, 2018 · 0 comments
Open

Move session persistance from application layer to Redis #81

MathBunny opened this issue Jul 7, 2018 · 0 comments

Comments

@MathBunny
Copy link
Owner

Migrating the session data from the application layer to an in-memory store like Redis-cluster would provide the following benefits:

  • Ability to easily scale, eliminating the need of sticky load balancers
  • Should any Node.js instance crash, the user doesn't lose their session

An alternative would also be to store them in cookies.

Back in #73, the EC2 issue resulted in StackOverFlow in the Node.js resulted in the server restarting via PM2, further propagating into users losing their sessions. If the session data was instead stored in Redis, it wouldn't have been lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant