[openstreetmap/openstreetmap-website] How to reduce requests to OSRM servers (Issue #7119)

Sarah Hoffmann notifications at github.com
Sat May 30 15:50:18 UTC 2026


lonvia created an issue (openstreetmap/openstreetmap-website#7119)

As with any other free service out there on the internet, the Fossgis OSRM servers have been struggling with overuse. As a consequence, we started to introduce rate limiting on the servers. Sadly, this interferes with the rather cool route-as-you-drag feature on the website. If you drag around a route, you end up pretty quickly with a 429 from the servers.

I wanted to open a discussion here what we should do about that. Some possible solutions I see:

* Disable route-as-you-drag. This would be the easiest and Valhalla and Graphhopper can't do it either. Still, would be somewhat sad to see the feature go.
* Reduce number of requests during dragging. If you can reduce it to something like 3/s then we can work with a burst on the OSRM server side that allows continued dragging for at least 15s. That should be more than sufficient.
* Proxy via the webservers. If the requests come from fixed IPs, we can exclude those. That would make things more sluggish though. And possibly overly complicated.

What do you think? Other ideas?

CC @datendelphin

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/7119
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/7119 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260530/c58b85c1/attachment.htm>


More information about the rails-dev mailing list