3 ms·
> do other FaaS providers solve this problem? Cloudflare's Workers have a good dev experience. It takes a second to build and locally preview a function. It li
by nindalf 6y ago
> do other FaaS providers solve this problem?
Cloudflare's Workers have a good dev experience. It takes a second to build and locally preview a function. It live-reloads when you make a change. Later, it takes a second to build and deploy. On the flip side, Workers can't run arbitrary Docker containers. Your code has to be JS/TS or WebAssembly.
I'm not affiliated with Cloudflare, just a satisfied customer.
- ignoramous 6y ago> On the flip side, Workers can't run arbitrary Docker containers. Containers are coming to the Cloudflare edge: https://blog.cloudflare.com/containers-on-the-edge/ https://blog.cloudflare.com/containers-on-the-edge/ (inevitable really) Nit: Workers should really be compared to Lambda@Edge instead.
- tdfirth 6y agoThat's interesting, thanks for the recommendation. I have heard good things about cloudflare workers too and the local dev setup you've described sounds quite good. Am I right in saying that they serve a somewhat narrower use case than lambdas though? My understanding is that they are mostly used for things like modifying requests/responses rather than for building a whole backend.
- pier25 6y ago> Cloudflare's Workers have a good dev experience My experience has been the opposite. Wrangler doesn't give you any meaningful errors (since it converts JS errors to Rust) and it crashes way too often. Recently I worked on a Workers project and I had an undefined missing variable. The only error Wrangler would output is "error". IMO Workers are only viable for really small and simple projects.