Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Cleaning up stale images from s3 bucket

We've to figure out some way to To clean the old/stale images from s3 bucket, the real scenario could be if someone uploads an image and update it later, given that we're using timestamp as image name, the old image would be there forever. Here are different approaches that we can take to address this issue: 

  • Replace the image on s3 instead of just creating a new one.
  • Keep track of old images and clean them once in a month.
  • Create a new image on s3 and delete the old one right away.

...

  • .