Thomas Bouron is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

Web Dev Opinions please:
Should I store data the user enters in the user's IndexedDB or on an account/web server? The pros of IndexedDB is that you don't need an account, but the cons are that you can't take it with you and it gets cleared out if you clear your browser cache. Pros of account is you can use it wherever, con is it's on a server somewhere...

I'm just storing a list of Git repos for the user so they can have them all in 1 place instead of multiple lists across services.

Thomas Bouron @tbouron

@Alamantus Depends of the use-case.

If you want to persist it until the end of time => store that server side, within the user data

If that is just for practicality and across services => IndexedDB seems like the right choice.

IMO, this is just state so I would opt for option 2

· Web · 0 · 0