I made a simple geolocation service
maxkostinevich.com
I made a simple geolocation service
1–10 of 187 posts
Re: I made a simple geolocation service
#2Are you charging for this?
Re: I made a simple geolocation service
#3tl;dr uses Cloudflares workers as API endpoint and returns Country name based on header in the CF request.
Re: I made a simple geolocation service
#4Love the ingenuity and thank you for the performance comparison on Cloudflare Workers vs AWS Lambda. I personally wouldn’t consider what you built a Geolocation service, but glad it solved your use case!
Re: I made a simple geolocation service
#5Are you charging for this?
The code is available for free and you can host it on your own Cloudflare account. Cloudflare provides a free plan (up to 100k daily requests across all your Workers), and paid plan ($0.50 per 1m requests)
Re: I made a simple geolocation service
#6Love the ingenuity and thank you for the performance comparison on Cloudflare Workers vs AWS Lambda. I personally wouldn’t consider what you built a Geolocation service, but glad it solved your use case!
Thanks!
Re: I made a simple geolocation service
#7Well that's a bit more than 2 requests per second on average. Sure you may have some bursts once in a while, but nothing a 3€ VM can't manage IMHO.
Re: I made a simple geolocation service
#8Nice! Have you tried AWS Lambda@Edge?
Re: I made a simple geolocation service
#9I had a geo-location service running in google app engine. for free. After pimping caching the daily traffic of 400.000 requests/day was in the free-tier.
https://www.united-coders.com/christian-harms/detailed-perfo...
Re: I made a simple geolocation service
#10Nice! Have you tried AWS Lambda@Edge?
and it looks like similar geolocation info "cloudfront-viewer-country" is available from AWS as well. So similar trick maybe possible with AWS https://docs.aws.amazon.com/AmazonCloudFront/latest/Develope...