Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Cloudflare Workers is 4.6x faster for CPU-bound tasks than Amazon Lambda (cloudflare.com)
30 points by zackbloom on July 9, 2018 | hide | past | favorite | 5 comments



Unfortunately they don't support shelling out or running static binaries, which makes Cloudflare worthless if you want to run other programming languages like Crystal, Ruby or Python, or do OpenCV stuff, which you can readily do (with some difficulty) in Google Cloud Functions and in Lambda. You are stuck in pure js land with Cloudflare workers, though they are still awesome for this speed increase.

disclaimer: I have 27 Google Cloud Functions doing native stuff atm, about 70% in Crystal, 15% in Ruby, and 15% in Python.


This is a side effect of their execution model. If they had to dedicate one entire OS process to each execution, it would be significantly more expensive. They use V8 Isolates to sandbox the user code, of which you can run many concurrently in a single process cheaply.


How much of that would WebAssembly support get you?


Not as much as I would like probably


Cloudflare Workers are fascinating. I love the idea of distributed functions-as-a-service. Simple deployment, quick response times. Has anyone tried pairing these with a geo-replicated database like Azure's CosmosDB to serve up a REST/GraphQL API?




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: