Serverless Performance: Cloudflare Workers, Lambda and LambdaEdge
11–20 of 65 posts
Re: Serverless Performance: Cloudflare Workers, Lambda and LambdaEdge
#12The value of any function-as-a-service is the ecosystem within which it sits. Pretty much all of them are the same: upload your code, we will run it. The value comes from 1) What can trigger that code to run and 2) What services that code can interact with. And on those two points, AWS still wins hands down. They have by far the most possible triggers for Lambda, and they have by far the most services that Lambda can…
Yes, that's how Amazon creates lock-in. But it depends what you're doing with it right? If you are looking to run code based on a SQS event, yes you have to use a Lambda. If you are looking to execute code when something visits a URL you have more options.
If you are referring to SNS, you've always been able to send SNS messages to HTTP endpoints. (https://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp....)
Re: Serverless Performance: Cloudflare Workers, Lambda and LambdaEdge
#13I wish Cloudflare would offer some kind of key-value store with Workers, something like Google Cloud Memorystore but globally distributed in all of their PoPs - even if it's really limited like 32 MB RAM.
Feel free to email zack [at] cloudflare.com directly if you like.
Re: Serverless Performance: Cloudflare Workers, Lambda and LambdaEdge
#14The value of any function-as-a-service is the ecosystem within which it sits. Pretty much all of them are the same: upload your code, we will run it. The value comes from 1) What can trigger that code to run and 2) What services that code can interact with. And on those two points, AWS still wins hands down. They have by far the most possible triggers for Lambda, and they have by far the most services that Lambda can…
Yes, that's how Amazon creates lock-in. But it depends what you're doing with it right? If you are looking to run code based on a SQS event, yes you have to use a Lambda. If you are looking to execute code when something visits a URL you have more options.
That is the cynical way to look at it. It also creates value because it lets you do more with what you already have.
> If you are looking to execute code when something visits a URL you have more options.
Sure, but unless that code works in isolation, it probably needs at the very least access to some sort of data store.
Re: Serverless Performance: Cloudflare Workers, Lambda and LambdaEdge
#15Re: Serverless Performance: Cloudflare Workers, Lambda and LambdaEdge
#16Does Cloudflare have a free DB of sorts, like Amazon's DynamoDB? Or can I query Amazon's DynamoDB from the worker?
But you also have a bunch of other options like:
Re: Serverless Performance: Cloudflare Workers, Lambda and LambdaEdge
#17BTW, if you're into modern C++ and this kind of work interests you, please e-mail me at kenton at cloudflare.com. We're hiring!
Re: Serverless Performance: Cloudflare Workers, Lambda and LambdaEdge
#18Does Cloudflare have a free DB of sorts, like Amazon's DynamoDB? Or can I query Amazon's DynamoDB from the worker?
1) Provision a (free) connection secret from fauna.com
2) Import the FaunaDB driver (npm install faunadb)
3) Create a client object using your connection secret.
After that you are using FaunaDB, which is purely pay-as-you go, with ACID transactions, joins, indexes, etc.
It would be simple to write a tutorial like this for Cloudflare. Hello world on Azure functions: https://blog.fauna.com/azure-functions-with-serverless-node-... and on Lambda: https://blog.fauna.com/serverless-cloud-database
Re: Serverless Performance: Cloudflare Workers, Lambda and LambdaEdge
#19Does Cloudflare have a free DB of sorts, like Amazon's DynamoDB? Or can I query Amazon's DynamoDB from the worker?
I've written a few blog posts about using FaunaDB from FaaS functions, the steps should be the same for any FaaS provider: 1) Provision a (free) connection secret from fauna.com 2) Import the FaunaDB driver (npm install faunadb) 3) Create a client object using your connection secret. After that you are using FaunaDB, which is purely pay-as-you go, with ACID transactions, joins, indexes, etc. It would be simple to wri…
Re: Serverless Performance: Cloudflare Workers, Lambda and LambdaEdge
#20Does Cloudflare have a free DB of sorts, like Amazon's DynamoDB? Or can I query Amazon's DynamoDB from the worker?
PS. If you're a storage expert and building a hyper-distributed storage system interests you, e-mail me at kenton at cloudflare. We're hiring.