Currently this app serves the audio content from S3 directly 😱.
|
return `https://s3-${process.env.AWS_REGION}.amazonaws.com/${process.env.AWS_AUDIO_BUCKET}/${uuid}.${process.env.SL_MEDIA_FORMAT}`; |
This bucket is now the second most expensive in the company for S3 transfer costs, about $310 a month.
It'd be well worth setting up either CloudFront, or even better a Fastly service with segmented caching enabled to reduce the costs.