duelyst icon indicating copy to clipboard operation
duelyst copied to clipboard

[P3] Implement pruning of replays

Open willroberts opened this issue 3 years ago • 2 comments

Summary

We should assess the size of replays and determine a good balance of how many replays to store per user based on S3 costs.

willroberts avatar Oct 16 '22 15:10 willroberts

Each replay is 12-20KB plus 5-7KB of mouse events. Assuming 32KB per replay, we can retain about 30,000 replays with 1GB of storage (which is billed at $0.023 per month in S3).

Setting a time-based expiration on these (e.g. 1 year) may be sufficient here.

willroberts avatar Oct 19 '22 16:10 willroberts

We're currently adding 1.4 MB/week of replays, or 72.8 MB/year. This is super low priority to prune.

willroberts avatar Oct 25 '22 18:10 willroberts