3 ms·
Interesting strategy mate! Any links on how to do that? I've googled a bit but haven't find anything on this!
by jonathan-kosgei 9y ago
Interesting strategy mate! Any links on how to do that? I've googled a bit but haven't find anything on this!
- zackbloom 9y agoI don't know if there are any great blog posts on it yet (write one!) but you can read more about Workers here: https://developers.cloudflare.com/workers/about/ https://developers.cloudflare.com/workers/about/
- JrSchild 9y agohttps://blog.cloudflare.com/cloudflare-workers-unleashed/ https://blog.cloudflare.com/cloudflare-workers-unleashed/ Yes check this out. What you'll have to do is build the aws sdk into a single javascript file that runs as a Web Worker. These are distributed to over a 100 servers worldwide. Then you would want to invoke the Lambda function from the worker, link below. You could potentially distribute this further by invoking a Lambda function geographically close to that specific worker. But this setup will be very fast already. https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Lambda.html#invoke-property https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Lamb...
- jonathan-kosgei 9y agoAwesome! Thanks!
- JrSchild 9y agoIt might be cool to create a tool that automatically turns a serverless.json file into Cloudflare workers that acts as little AWS API Gateway services. If anyone is up for swapping ideas, I made a GitHub repo: https://github.com/JrSchild/cloudflare-lambda https://github.com/JrSchild/cloudflare-lambda