Melkeydev / astrostation

https://astrostation.me
MIT License
209 stars 42 forks source link

Add Backups/Remote Storage #238

Closed royanger closed 2 months ago

royanger commented 1 year ago

The biggest concern/question I have about features like Issue 220 is that lack of backup options. IE, if there is a calendar and Todos and Notes (and maybe more in the future) all of that data is linked to the computer+browser (local storage). A user couldn't access this data on a phone too, or another computer. They could also lose it via clearing data for the browser, computer crashed, etc.

This has got me thinking about how we could tackle this problem with no disruption to the current app. I have a rough plan in mind, one that will need discussion on whether this should even be considered and if so what should the final details look like.

Goals

Challenges

Plan

mastermajorman commented 1 year ago

@Melkeydev had developed a pretty large backend in Go a bit ago. I forget exactly how much of it was done by scratch or with third-party components, but I want to say it was substantially original. I think we decided not to implement it long-term because it was a lot to maintain and pay for with little upside. However, as grow Astrostation we can probably manage a low cost server (<$2 month), so might be worth checking this out again.

I'm all for reducing the opportunity of user headaches as the widgets we're adding become more personalized and depended on. Perhaps taking the lightest serverless approach possible (as I think you're describing) would be an ideal route. We could set up a few services with AWS to accomplish this. IAM+Cognito for authentication and authorization, then either API Gateway+Lamba+S3 or EC2+S3 for storing and retrieving user data. I've got some experience in this arena if we decide to take this on.