System Design - Uber Flashcards
1
Q
Deep Dives
A
- How to handle huge number of writes?
Answer: Redis Geospatial data-store
Geohashing - encode lat/long together. indexed using sorted set
GEOADD, GEORADIUS, GEORADIUSBYMEMBER
Use Redis Cluster or Sentinel. Choose Cluster - Handle to many location updates.
Answer: just update every 5 seconds - Prevent multiple driver requests.
ANswer: distributed Redis lock on driver ID - Handle Peak load. How make sure riders can request stuff
Answer: Kafka queue