robby1066 / keepposted-help

Documentation, Issue Tracker, and Repository of Knowledge For Keep Posted (www.keepposted.io) — A way to keep teams informed and connected without disrupting their focus.
https://www.keepposted.io
1 stars 0 forks source link

Archive old messages #58

Open robby1066 opened 3 years ago

robby1066 commented 3 years ago

What's the problem you're hoping this new feature will solve?

Messages currently have no expiration dates, and can be viewed indefinitely. This probably doesn't serve too much of a purpose in most cases, but it likely matches user expectations. It's expensive to store all those files on the server, however.

Moving old messages that are unlikely to be viewed again to archive storage would save money, and if done correctly, would have minimal impact on user experience.

Description of feature

An 'archive' feature would flag the video stored in S3 for storage as either:

research needs to be done to determine the best option for the archive storage class

This change should be reversible with minimal interaction from the user. Likely, this can be done in a way based on access. When a message has not been accessed for a certain amount of time (~30 days), it's put into archive state. If someone tries to access it again, they're presented with a message saying the message is being fetched (this will depend on the restore times from the infrequent access S3 classes), and then they'll be able to view the message after it restores. Next time it goes more than 30 days without being accessed, it's archived again.

Alternatives and workarounds

No current way to do this in the app.

robby1066 commented 3 years ago

After a little bit of research, it looks like the simplest version of this can happen all in AWS configuration. That seems like a reasonable place to start, and then if needed look for fine-tuning options that are more hands-on down the road.

This has a fair bit of overlap with some of the other things going on, like #57. I'll leave this out of the June milestone so those other issues can get the focus they need. Once they're done, it will be more clear how much impact this change will have.