How Ipdata Serves 25M API Calls from 10 Global Endpoints for $150 a Month
highscalability.com
highscalability.com
Just a thought. Still, $150 p/m is not bad!
$20 for 55 'servers' spread worldwide isn't bad, with no maintenance overhead.
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...
If anyone is up for swapping ideas, I made a GitHub repo:
EDIT: And you're the author -- thanks!
I will agree that it's not for everyone. And would probably more likely appeal to indie makers like myself.
Perhaps a JSON file for 4 billion IPs with all the data would be too large to fit in memory. Who knows. Lambdas can be up to 50MB so maybe this is a dumb idea unless you normalised the data somehow.
I do wonder if you didnt try Apistar (https://github.com/encode/apistar) . Its built by the author of django rest framework .and also is much more frequently updated
I had no idea apistar existed, it certainly didn't come up when I was doing my research. But it looks pretty full featured, thank you for this!
I understand printing log is simple but you still have to push that log to cloudwatch... it's still being done on the same system. So, you end up paying that cost either way.
You can use MongoDB atlas with multi-region replication for low latency queries instead of DynamoDB.