Websites: Behind the scenes
Multilingual static websites, edited and published in minutes.
AWS services
- S3 and CloudFront: the pages are static files, served from edge locations around the world.
- API Gateway, Lambda and DynamoDB: the API and the builder that makes the files; one DynamoDB table, read with Query and never with a scan.
- Lambda image processing: every picture gets 480, 960 and 1600 pixel WebP copies, so phones load small files.
- Terraform: all of it is infrastructure as code.
Decisions
- Static files instead of servers: fast, safe and cheap.
- A release is built once and then moved: the live website changes only when you promote.
- One stylesheet per website, cached for a year, and a 301 redirect from the home address to the default language.
Cost
Hosting static pages costs cents per month. The whole platform runs within a monthly budget of about 10 US dollars while it is being built.