What I want to talk about
- Cloudflare and Cloudflare Workers
- Flareact, edge-rendered React framework powered by Cloudflare Workers
What is Cloudflare workers
- Serverless execution environment that allows you to create entirely new applications without configuring or maintaining infrastructure
- Workers functions run on Cloudflare's Edge Network, a growing global network of thousands of machines distributed across hundreds of locations
- Workers runtime uses the V8 engine, the same engine used by Chromium and Node.js
Static Site Generation (SSG) and Server Side Rendering (SSR)
SSG
- Page speed is faster than SSR. Easely cache it at the edge
- Less cost. No need to prepare huge server computing
- Difficult to update contents. Need to regenerate and deploy
SSR
- Page speed is slower than SSG. Response time sometime suffer from the physical distance between browser and your server location
- High cost. Need to prepare huge server computing depending on the number of requests
- Easy to manage frequent updated dynamic contents
Demo
https://flareact-template.tamanyan.workers.dev/
https://github.com/tamanyan/flareact-template