r/howdidtheycodeit • u/R_Olivaw_Daneel ProProgrammer • Sep 30 '21
How does Uber/Lyft continuously track drivers and their locations relative to the user searching for a ride?
37
Upvotes
r/howdidtheycodeit • u/R_Olivaw_Daneel ProProgrammer • Sep 30 '21
View all comments
Show parent comment
3
u/slobcat1337 Oct 01 '21
Why would you have a separate socket designated per block? Why wouldn’t you just have multiple instances running? I can’t think of any reason why you’d go to the trouble of having sockets designated to 50km x 50km blocks.
You could just have multiple instances (maybe using Docker with ECS) sitting behind a load balancer.
I literally can’t think of one good reason why you’d have a servers specifically designated to location blocks