Samuel ZV

Dev Articles

Static web hosting solutions

This is a list of web hosting solutions. I have researched and tried each one of them. Every item on the list has a description, cost, and my own opinion about them.

Summary

  • Amplify: best option for small/medium websites.
  • Cloudfront+S3: only worth it for cutting costs of Huge websites.

Cloudfront + S3 (AWS)

This solution involves using an S3 bucket to storage the website files and Cloudfront to serve the files to the user through a CDN.

Deploy a static website in AWS (Cloudfront + S3)

Introduuction

The architecture is very simple, an S3 bucket will have the files of the website and Cloudfront will serve the files from the bucket to the internet. Cloudfront uses a global CDN so it is fast, reliable and can scale without limitations; maybe the only problem is the update time and cache invalidation of the CDN.

The whole setup can be configured in under an hour. However, this method does not come with automatic deployment, so that has to be configured separately to sync the files in the S3 bucket.