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

Migrate from JSON session storage to a local SQL DB like SQLite #5

Open
nicbarker opened this issue Jan 21, 2018 · 0 comments
Open
Assignees

Comments

@nicbarker
Copy link
Member

While JSON is very convenient for session storage and retrieval, there are definitely some limitations that we'll probably hit later down the track. Some that I can think of:

  • If the shape of the session storage needs to change, supporting multiple different versions will require a home grown migration solution for the JSON schema that can handle version jumps. If we use SQLite or something similar, we can use an engine agnostic schema migration tool like Sqitch to do SQL schema migrations after version updates.
  • Storing the session in a database will bring us a step closer to being able to offer a hosted solution (i.e a version of gatekeeper that can be run in a browser, with heavy calculations done on the server side)
@nicbarker nicbarker self-assigned this Jan 21, 2018
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