Saving Millions of Images Series [Part Three]
Tags: architecture, aws, programming
Published: 2022-01-13 15:52:21

**CDN**

“The ideal method” is to store the metadata about the image and then copy the image to a CDN for serving that to a user. This way your site isn't impacted by all of the requests needed to get those images, resulting in a more performant site.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/th3als5tn8o0a5q9409i.jpg)

Using CloudFront as CDN can match with default strategy for startups of using AWS products and AWS credits for startups.

**Replacing paths of images**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3k1ztxy5kj1musyo7fq3.png)

Instead of S3 URLs, we can add a subdomain, like images.websitename.com or cdn.websitename.com. 


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bptbg9pb9qgruvj7exdw.png)

I think it might be a great improvement for SEO. But probably you can get [DMCA complaints](https://www.upcounsel.com/dmca-notice#:~:text=a%20DMCA%20Notice%3F-,A%20DMCA%20notice%20informs%20a%20company%2C%20web%20host%2C%20search%20engine,that%20infringes%20on%20a%20copyright.&text=DMCA%20stands%20for%20Digital%20Millennium,notice%20or%20a%20DMCA%20request.). But it's just an additional thing to solve.


* [What is a CDN? How does a CDN Work? | Imperva](https://www.imperva.com/learn/performance/what-is-cdn-how-it-works/)
* [Content Delivery Networks — What is a CDN?](https://www.akamai.com/our-thinking/cdn/what-is-a-cdn)
* [Cloud CDN: Content Delivery Network | Google Cloud](https://cloud.google.com/cdn)
* [https://docs.microsoft.com/en-us/azure/cdn/cdn-overview](https://docs.microsoft.com/en-us/azure/cdn/cdn-overview)
* [4 ways startups say a modern CDN supports their goals | Fastly](https://www.fastly.com/blog/4-ways-startups-say-a-modern-cdn-supports-their-goals)
* [What Startups Should Know Before Choosing a CDN](https://aws.amazon.com/blogs/startups/what-startups-should-know-before-choosing-a-cdn/)
* [Amazon CloudFront for Media](https://d1.awsstatic.com/whitepapers/amazon-cloudfront-for-media.pdf)
* [Improve your website performance with Amazon CloudFront | Networking & Content Delivery](https://aws.amazon.com/blogs/networking-and-content-delivery/improve-your-website-performance-with-amazon-cloudfront/#:~:text=You%20can%20use%20a%20content,latency%20and%20high%20transfer%20speeds.&text=In%20addition%2C%20CloudFront%20offers%20a%20variety%20of%20optimization%20options)<span style="text-decoration:underline;">.</span>
* [Bulk Loading from Amazon S3 — Snowflake Documentation](https://docs.snowflake.com/en/user-guide/data-load-s3.html)
* [How to Deliver Content Faster – Amazon Web Services (AWS)](https://aws.amazon.com/getting-started/hands-on/deliver-content-faster/)
* [AWS CloudFront: Everything You Need to Know](https://www.simplilearn.com/tutorials/aws-tutorial/aws-cloudfront)
* [Amazon CloudFront (AWS's CDN)](https://www.serverless.com/guides/amazon-cloudfront)
* [How to Use AWS CloudFront: Deploying Amazon's CDN and Using It at a Discount - Reblaze Blog](https://www.reblaze.com/blog/how-to-use-aws-cloudfront-deploying-amazons-cdn-and-using-it-at-a-discount/)


**Saving Millions of Images Series**
- [Part One](https://dev.to/atherdon/saving-millions-of-images-series-part-one-od1)
- [Part Two](https://dev.to/atherdon/saving-millions-of-images-series-part-two-301n)