Host on a Content Delivery Network (CDN)

Description of your first forum.
Post Reply
mouakter11
Posts: 358
Joined: Wed Dec 18, 2024 4:14 am

Host on a Content Delivery Network (CDN)

Post by mouakter11 »

We decided to move our front end to some other service where we don’t have to put more effort. The team can focus more on developing business logic rather than putting time into these overheads. Hence, we started exploring what other options are there and which one can suit us best.

This one is interesting, highly performant, and a little hard to get started with. With Performance Testing, this approach, we will solve both the problems we faced in the first approach.

As mentioned on MDN, “A CDN (Content Delivery Network) is a group of servers spread out over many locations. These servers store duplicate copies of data to fulfill data requests based on which servers are closes t self employed data to the respective end-users. CDNs make for fast service less affected by high traffic.”

So, the idea behind this approach is to use a set of machines overs different geographic locations for hosting the same copies of your assets ( in our case, it is our front-end code). As your code is there on all major locations, download time for your website will be similar for all the users depending upon their internet speeds.

But like any other approach, it also has some cons. Though there are many tutorials/blogs available, setting things up can be a little challenging. To find more about how to set up this using amazon CloudFront and S3, you can check amazon’s official documentation here.
Post Reply