We are trying to build a system which needs to log the driver's location in real time like Uber. It needs to select the closest, online driver who is free from this data. Our API is built on NodeJS. My biggest concerns are:
For this to work, the driver's mobile app needs to send it's the location to our server every few seconds. We need to find the best interval to send these updates and the best architecture to handle this.