- Newest
- Most votes
- Most comments
Hi, The AWS Pricing Calculator (calculator.aws) is a great tool for estimating costs. I recommend you work out the total cost for either approach to see how they compare. However, storage on S3 is pretty cheap (about $0.02/GB/month) so you'll probably find that the cost is negligible.
Another big factor you'll want to consider is latency i.e. how long it takes for the profile picture to be sent once the user requests it. Resizing the image each time it was requested will inevitably increase the latency, but you'll have to experiment to whether this is a big impact.
Either approach would probably be fine but personally I'd recommend resizing the thumbnail images once and then storing this in S3. I imagine that on your social media site each thumbnail is viewed many times and so only processing it once and then storing the result is likely to come out cheaper. However, again the cost is likely to be negligible and so the latency advantage of processing the images before the user asks is also worth considering.
Thanks,
Marrick.
The answer really depends on the actual usage. If the resized image is not accessed very often, than maybe calculating each time will be cheaper. If it is accessed more frequently, calculating it once and saving it will be cheaper. Usually I think that calculating it upfront and saving in S3 is the preferred option, also from latency point of view.
Relevant content
- asked a year ago
- Accepted Answerasked 2 years ago
- asked 2 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago