4 ms·
I have a Worker running bcrypt here: https://cloudflareworkers.com/#4addaef33b10b6a58954ffbb310e7cdf:https://tutorial.cloudflareworkers.com https://cloudflarewo
by zackbloom 8y ago
I have a Worker running bcrypt here: https://cloudflareworkers.com/#4addaef33b10b6a58954ffbb310e7cdf:https://tutorial.cloudflareworkers.com https://cloudflareworkers.com/#4addaef33b10b6a58954ffbb310e7...
Based on this code: https://gist.github.com/zackbloom/c0064838cbf85e7b81df9d46900775bb https://gist.github.com/zackbloom/c0064838cbf85e7b81df9d4690...
That means it would cost you $0.50 / million requests. AWS Lambda would be $1.84 / million, $3.50 / million for API Gateway, $0.40 / million for AWS Route 53, and various other charges.
- NathanKP 8y agoTechnically CloudFlare workers is better compared with Lambda @ Edge no? I don't think you'd be using API Gateway, instead CloudFront right?
- zackbloom 8y agoOriginally we were thinking about it in those terms (as an alternative to Lambda@Edge), but based on our recent results I am happy to have people compare it to Lambda as well. Lambda with API Gateway is at least eight times more expensive than Workers, and only runs your code in one location instead of 151. Unless you're using Lambda to do something ultra-Amazon-specific (like process S3 changes), I don't see why it would be the better choice.
- NathanKP 8y agoGotcha. Thanks for explaining!