-
Notifications
You must be signed in to change notification settings - Fork 49
Multiple Connections #40
Comments
Sure. Pretty much the same like pure NodeJS |
Are there any other types of queries we can do with node-osrm besides routing? For example, getting the nearest road point, and other calculations that have been covered by the APIs through OSRM itself? |
@DennisOSRM To be clear, if you have two routing requests (via node bindings), resulting in two calls to OSRM, the routing calculations for both could be done simultaneously? Both calculations would run against the same route data that's been loaded to memory (i.e., it's not like you'd double the memory usage or something)? |
Yes. The calculations can be done independently. There are some bottle necks such that you won't get linear speed up with a growing number of processors but it should scale quite good. It is important to use the shared memory facility here, which the bindings do. No data (except the bit used locally for each query) will be doubled. |
added an example server in dc1add7 that shows how to create a single instance of |
awesome--thanks Dane! |
If I use node-osrm as my bindings to OSRM, does this allow me to have multiple simultaneous connections to OSRM?
The text was updated successfully, but these errors were encountered: