Living on the Edge¶
Cloudflare is a company built to serve your storage, security and, most recently, computing needs at the network edge. They have built a lot of goodwill in the developer community by providing free DDOS protection and with good reason.
If you're using Cloudflare anyway, adding Workers to your stack is a no brainer, but if you're on a single provider, adding a new one to your stack will bring a lot of complexity. This can be worth it however, if you want any of the goodies below, all of which are unique to Cloudflare's offering.
- Free DDOS protection (including costs).
- Zero-effort key-value store on the network edge.
- No data transfer costs.
- The Fetch API in Workers is the best serverless function API out there.
- Poor developer experience: gaps in the documentation and misleading error messages.
- No logs.
Use Workers if you're already on Cloudflare, or if you need a highly customizable static hosting solution.