'How does Uber send new ride requests to drivers?
I was curious about what system design possibly Uber uses for sending new trips to Drivers. The new trip requests keep popping up on the phone of Uber drivers. The things to consider would be :-
- Are the requests sent by splitting by locality of the requests ?
- Do they use a permanent open unidirectional socket connection ?
- Or does the application keep querying the database ?
It would also be helpful if someone could give example of libraries which can achieve similar architecture using a nodejs server and android application frontend (current preferences).
Solution 1:[1]
To get a definitive answer you'll have to get someone from Uber to answer your question, otherwise all we can do is speculate based on what we believe is best practice / makes sense.
That said, there is a bunch of articles online that talk about how Uber is built, a cursory search provides links such as these:
I can't vouch for the quality of these articles (the first one's author has also done a video - link in the article), but at first glance they look pretty good as they seem to go into some depth and look like they will (probably) cover the questions your asking.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Adrian K |
