by k__ · 6y ago · 0 comments
AWS Lambda can run all programming languages via layers.
Cloudflare Workers can run all programming languages that compile to WebAssembly.
"Vendor Lock"
True, but being locked into Kubetnetes isn't a cakewalk either.
"Performance"
Cold-starts aren't a thing for Cloudflare Workers and can be mitigated for AWS Lambda. AppSync and API Gateway don't even have them if you directly integrate with AWS services.
"You Can't Run Entire Applications"
You can and it has been done multiple times. Sure, you shouldn't blindly build everything with Lambda and API-Gateway without measuring. But many services, especially Cloudflare Workers are quite cheap.
Anecdotally, stories of businesses abandoning entire cloud automation projects because they wasted weeks and never had anything to show from it don't seem unusual, so evidently a considerable amount of knowledge and skill is required to get value out of these tools.
Serverless makes somethings easier and other things harder, so it's advantages over good old fashioned servers are clear cut.
I was quite impressed when I exposed Kinesis via API Gateway, it just worked, although the Kinesis requirement that data be b64 encoded did require some fiddling about with mapping templates.
Sure, a container is better than a serverless function in many ways, but the function isn't what the container is competing with.