Live data from Hacker News

I made a simple geolocation service

maxkostinevich.com

61–70 of 187 posts

Re: I made a simple geolocation service

#61
Regarding latency of AWS Lambda:

> on average the response took somewhere between from 200ms to 500ms

I'm getting latency of 66ms to 126ms with some simple Java code running on AWS Lambda using provisioned concurrency. I find the latency is just fine for most use cases.

Re: I made a simple geolocation service

#62

Earlier quoted context omitted.

That's only true if you assume a even distribution. If you cluster them the scenario is a bit different (your conclusion might still hold anyway)

Even if all requests were clustered into one hour per day, it’s only 54 requests per second. Pretty sure a Pi would be up to the job.

Yes, HN hit my blog on a 3b+ and that was no issue.

Re: I made a simple geolocation service

#63
post #14

I (like many others it seems!) have also built a geolocation service however mine is built on top of MaxMind's DBs that are mentioned in the post. Its on a few boxes running OpenResty and now handles 130m+ requests/day. Was really fun to build! https://github.com/jloh/geojs https://www.geojs.io/open/

It's forbidden by MaxMind ToS, these dudes changed the rules and forces you to abide to the new conditions when you download an update.

It's very borderline from them (at least ethically)

Re: I made a simple geolocation service

#64

Earlier quoted context omitted.

I always find it funny when people brag about cost savings on cloud services while overlooking the insane premium they're paying by using the "cloud" to begin with. It's kinda like a construction firm using a supercar to haul materials and then bragging about their efforts to make cosmetic repairs cost-effective... maybe you could just not use an overpriced car to begin with and then damage won't be an issue?

Am I missing something? Isn't a $3 VM referring to a VM service in a cloud somewhere? If you try to do the same thing without cloud you'll have to end up renting space in a datacenter, install your own servers, connect to an ISP, power bills, etc etc. Cloud definitely seems cheaper in comparison

GP and you aren't using the same definition of cloud. By cloud, they mean infrastuctures like AWS/GCP/Azure, not simple VM hosting (called VPS outside "clouds", and compute nodes in "clouds")

Re: I made a simple geolocation service

#65

How does MaxMind prevent someone from releasing an open source version of their database? If you are about to answer "Copyright", remember - you can't Copyright facts. This has been upheld in the Courts system many times.

Maxmind's database is updated very regularly and includes a lot of things like risk scoring. Those are absolutely protected.

Re: I made a simple geolocation service

#66
The cheapest alternative has to be to ask the users where they are and store it on the user device? I never understood the need for geoip unless you ship spyware.

If the exact location is important geoip is not accurate enough anyway. Forwarding to regional sites automatically is just annoying when it doesn't work properly or someone is traveling abroad.

Re: I made a simple geolocation service

#68
post #37

That country list doesn't have Kosovo (2008) or South Sudan (2011).

A somewhat related problem is that overseas regions (at least for France) are handled as different countries. It makes sense for a CDN, but for most other purposes when I use Internet when I'm on Réunion island my country is "FR", not "RE", since RE is not actually a country. It's also quite inconsistent, I've tried with several IPs from Réunion and some of them are FR while the others are RE.

It doesn't seem to have the same problem with Hawaii for some reason, they're all just US from what I can see.

Re: I made a simple geolocation service

#69
post #63
post #14

I (like many others it seems!) have also built a geolocation service however mine is built on top of MaxMind's DBs that are mentioned in the post. Its on a few boxes running OpenResty and now handles 130m+ requests/day. Was really fun to build! https://github.com/jloh/geojs https://www.geojs.io/open/

It's forbidden by MaxMind ToS, these dudes changed the rules and forces you to abide to the new conditions when you download an update. It's very borderline from them (at least ethically)

I didn't see anything in their ToS that would prohibit hosting an API as long as you enforce the same requirements as maxmind does?

Re: I made a simple geolocation service

#70

Earlier quoted context omitted.

But that would mean that your API should return a country specific result to be accurate.

Which is precisely what for example Mapbox does - they allow consumers to specify a worldview, which adjusts borders and other geographic features based on the specified culture: https://docs.mapbox.com/help/glossary/worldview/

[dead]
Post reply on HN