Hello!
I have implemented a taxi route dispatching solution with Custom WebSocket Push Framework.
It's working nicely but I'm looking for improving further its performance.
I've made a thought to create a class into the websocket server application, running for every route a new thread in order to control the dispatching for the routes.
Is it possible to run this class of the route object in multiple threads?
Every route object will have all the properties (flags,list of drivers interested in,etc.) needed to control the dispatching.
30 seconds after broadcasting of the route, I have to check for the nearest driver who claimed the route, so it will be needed a timer for every route thread (unless there is a better idea than timer)...
Is all the above possible?
Thank you in advance!
I have implemented a taxi route dispatching solution with Custom WebSocket Push Framework.
It's working nicely but I'm looking for improving further its performance.
I've made a thought to create a class into the websocket server application, running for every route a new thread in order to control the dispatching for the routes.
Is it possible to run this class of the route object in multiple threads?
Every route object will have all the properties (flags,list of drivers interested in,etc.) needed to control the dispatching.
30 seconds after broadcasting of the route, I have to check for the nearest driver who claimed the route, so it will be needed a timer for every route thread (unless there is a better idea than timer)...
Is all the above possible?
Thank you in advance!
Last edited: