Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 17:55:05] <vladikoff> hey hannosch, saipc forwarded your response. We can solve the latency problem by hosting ichnaea in the U.S.
- [17:55:20] <vladikoff> hannosch, for the first iteration we do not need fast response either
- [17:56:23] <vladikoff> hannosch, how hard is it to implement IP look up for Mozilla internal stuff only?
- [17:56:59] <hannosch> vladikoff: hosting ichnaea is overkill. you just need to put the maxmind db file on disk and use one of the many clients to read it. that's probably 10 lines of your code and a dependency
- [17:57:20] <telliott> apparently I was wrong and we've given up trying to centralize it!
- [17:57:47] <hannosch> and than you can decide to get city data out of it, instead of just a region code like "US" or "GB"
- [17:58:06] <vladikoff> hannosch, ichnaea does not have city data?
- [17:58:23] <saipc> hannosch: we do have one at mozilla/fxa-geodb, but vladikoff and I are concerned about robustness
- [17:58:25] <hannosch> it doesn't expose it as an API
- [18:00:00] <hannosch> there are plenty of clients available at http://dev.maxmind.com/geoip/geoip2/downloadable/ - I only know the Python one, but there are several for node.js. one of them ought to be good
- [18:00:25] <vladikoff> hannosch, IMHO pros of using your stuff (with IP lookup): it is already hosted, has metrics and ops looking at it, you also have overrides in place for some locations
- [18:00:37] <vladikoff> hannosch, one single db for all Mozilla stuff
- [18:01:05] <vladikoff> hannosch, and auto update already in place
- [18:01:40] <vladikoff> hannosch, if we make our own we have to: have ops keep looking at it, implement auto-update, implement override
- [18:02:16] <hannosch> well, for ichnaea, we only do update the db on each software rollout, so with it in maintenance mode, maybe once a month or less
- [18:02:54] <hannosch> it gets packaged up as a custom rpm and installed as an rpm dependency here. so there is no magic auto-update
- [18:03:08] <vladikoff> hannosch, i see
- [18:03:41] <saipc> vladikoff: what do u mean by override ?
- [18:03:48] <vladikoff> hannosch, what does Desktop use these days? Google?
- [18:04:35] <vladikoff> saipc, there are some locations that need to be corrected for legal reasons
- [18:05:03] <saipc> vladikoff: i see
- [18:05:11] <hannosch> vladikoff: depends on what you mean by desktop. there is a precise geolocation API which gets latitude/longitude responses. that uses a Google service. there is also search defaults which needs to the users country code to fetch the right search providers, that uses ichnaea
- [18:05:38] <hannosch> well, and we don't have any override in ichnaea either. we just pass through whatever we get from the db
- [18:06:12] <vladikoff> hannosch, ah okay, thanks for clarifying!
- [18:06:16] <hannosch> since maxmind offers a robust geoip service, we never looked at or invested in alternatives
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement