HNHacker News
TopNewBestAskShowJobs

JrSchild

6 karma · joined May 20, 2016

  The less a man makes declarative statements the less apt he is to look foolish in retrospect.
submissionscomments
JrSchild··on How Ipdata Serves 25M API Calls from 10 Global Endpoints for $150 a Month
It 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

JrSchild··on How Ipdata Serves 25M API Calls from 10 Global Endpoints for $150 a Month
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/Lamb...

JrSchild··on How Ipdata Serves 25M API Calls from 10 Global Endpoints for $150 a Month
My strategy is to use Cloudflare workers to invoke a Lambda function. This way I have a cheap AWS API Gateway replacement. $3.70 per 1M requests becomes only $0.50. Costing my only $12.5 for 25M requests + the Lambda invocations which are hella cheap.