--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Using the HTML5 location API requires permission from the browser,
which isn't really practical for most apps.
We built an ip geolocation service on appengine using hessian and the
free maxmind db. The hard part was hacking around the 10M limit - but
that shouldn't be a problem with SDK 1.5.5 since the data file is
~27MB.
Some sort of finer-grained geoip lookup builtin to appengine would be
really, really handy.
Jeff
Maxmind's database doesn't work this way. It's a flat file that gets
pulled entirely into RAM. The code is horrific and it's nontrivial to
make it read from anything other than a filesystem. We had to hack it
heavily just to read from a three-way-split file.
The downside is that an app instance is slow to startup because it
needs to pull 30MB off of Google's incredibly slow filesystem. But
once it's running, lookups are pretty much instantaneous and
zero-cost.
Jeff
I'd post my code that reconstitutes the three part file into one, but
it's pointless with the 30MB file limit raise around the corner.
Jeff
2011/10/6 Ronoaldo José de Lana Pereira <rper...@beneficiofacil.com.br>:
> Jeff,
>
> Does your aproach plays well as a backend?
>
> -Ronoaldo
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/tggusylTQdsJ.
This made me smile as we did the exact same thing. Split the maxmind
database in 3 and reconstituted the file in code.
We initialise the database in a warm up task so it gets loaded into
memory. It's quite speedy after that (but it does take up a chunk of
memory)
cheers
James
It's horrific because doesn't allow for working with anything other
than a RandomAccessFile, which is the interface I had to mock in order
to get it working. It's horrific because it's full of magic numbers
and bizarre data structures without documentation.
Why do you want to run it agains the datastore? The free version fits
in frontend RAM. The "full" version will fit in backend RAM. Or run
it on a linode server. The idea of deciphering Maxmind's wacky data
structures gives me nightmares.
Jeff
It doesn't work anymore. At least, it doesn't work for me here in the
Bay Area anymore. And Google has pulled down all documentation for
it, so presumably it has been deprecated.
Too bad, it's exactly what I want.
Jeff
Also what level of detail do you want?
Jeff
--
Uh... did you miss the part where I did this and it works great? And
James Broberg did the same?
Jeff
Fair enough… I’m a data hoarder :-) and clients have been buying information for 18+ years. I have never don the GEO-Ip as a service because the cost could never be competitive with Maxmind. At somepoint max mind might offer a directly compatible/supported solution with AppEngine. If I were a Developer Evangelist at Google this would be the kind of thing I would be working to make happen (hint, hint, nudge, nudge)
From: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] On Behalf Of Krishna Patel
Sent: Friday, October 07, 2011 2:50 AM
To: google-a...@googlegroups.com
Subject: Re: [google-appengine] X-AppEngine-City
Jeff,
--
You have a sense of the volume? Would you prefer a monthly Sub, or a per X IP’s looked up?
To be fast I’d likely have an always on instance. That is going to put the pricing at $10 a month minimum.
From: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] On Behalf Of Chris Collins
Sent: Friday, October 14, 2011 8:45 AM
To: google-a...@googlegroups.com
Subject: Re: [google-appengine] X-AppEngine-City
Brandon,
--
Don’t be. I really didn’t want to have to support something ;-)
From: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] On Behalf Of Chris Collins
Sent: Friday, October 14, 2011 5:37 PM
To: google-a...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/4s-jQZ3YBZYJ.