System Design - Uber Flashcards

1
Q

Deep Dives

A
  1. 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
  2. Handle to many location updates.
    Answer: just update every 5 seconds
  3. Prevent multiple driver requests.
    ANswer: distributed Redis lock on driver ID
  4. Handle Peak load. How make sure riders can request stuff
    Answer: Kafka queue
How well did you know this?
1
Not at all
2
3
4
5
Perfectly