duelyst
duelyst copied to clipboard
[P3] Implement pruning of replays
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.
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.
We're currently adding 1.4 MB/week of replays, or 72.8 MB/year. This is super low priority to prune.