[GraphHopper] Threading support

Peter graphhopper at gmx.de
Thu Jul 16 17:02:34 UTC 2015


Hi Alex,

as long as you use the in-memory setting you are safe for multiple
concurrent routing requests.

But why implementing the server side handling from scratch as we offer
this already via the web module?

Kind Regards,
Peter

On 16.07.2015 18:53, Piemapping wrote:
> Hi,
>
> I’m currently writing a simple socket server that uses GraphHopper to
> respond to routing requests.
>
> Listening for clients is blocks, so I’m planning on having the main
> thread block and spawn new threads to handle the routing request.
>
> Will it be possible to have multiple concurrent routing requests on
> the same in-memory graph? If not, how much of a challenge would
> implementing this be?
>
> Thanks,
> Alex




More information about the GraphHopper mailing list