[Geocoding] Removing HTTP (man in the middle) for performance

Mark Davies mark at whitelabeltracking.com
Tue Apr 30 04:59:13 UTC 2019


Hi All

Following on from some excellent advice from Sarah Hoffmann, I have been
able to increase the server to handle a greater amount of requests per
second

I have now noticed the app that requests reverse geo-code is the bottle
neck, and after a bunch of tests it appears the time it takes to return the
result is the biggest issue (limiting concurrent threads)
Therefore I need to reduce the amount of time it takes nominatim to return
the result

>From my tests it takes around 270-500ms for the calling app to get the
result, I've searched online and seen Sarah also mention the HTTP portion
"main in the middle" is the biggest slow down.
So my question is: what options do I have to cut out the man in the middle,
the HTTP portion?

The calling server/app is windows 2016/ .Net App, and its not an option for
everything to go on one server, but I plan to move it on a LAN, currently
its hitting public IP

Some of my thoughts on cutting out the HTTP portion was
1. Host the reverse php code on windows, connect the windows php code to
nominatim DB (all on LAN)
2. connect to DB directly from windows, and do same DB query as nominatim

Can you suggest any other approaches I'm not considering, and which one
might be best

Also, is this approach a good option for reducing the time it takes to get
a result, or am I looking at a small number of milliseconds?

Thanks in advance for your time and help
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/geocoding/attachments/20190430/8bb970eb/attachment.html>


More information about the Geocoding mailing list