scaling uber s realtime market platform
play

SCALING UBERS REALTIME MARKET PLATFORM QCON LONDON 2015 partners - PowerPoint PPT Presentation

SCALING UBERS REALTIME MARKET PLATFORM QCON LONDON 2015 partners riders dispatch post trip maps / ETA services processing databases money partners riders dispatch post trip maps / ETA services processing databases money


  1. SCALING UBER’S REALTIME MARKET PLATFORM QCON LONDON 2015

  2. partners riders dispatch post trip maps / ETA services processing databases money

  3. partners riders dispatch post trip maps / ETA services processing databases money

  4. partners riders dispatch post trip maps / ETA services processing databases money

  5. partners riders dispatch post trip maps / ETA services processing databases money

  6. partners riders dispatch post trip maps / ETA services processing databases money

  7. MICROSERVICES

  8. partners riders dispatch post trip maps / ETA services processing databases money

  9. partners riders dispatch post trip maps / ETA services processing databases money

  10. partners riders dispatch post trip maps / ETA services processing databases money

  11. partners riders dispatch post trip maps / ETA services processing databases money

  12. dispatch post trip maps / ETA services processing databases money

  13. PROBLEMS •1 rider, 1 vehicle •Moving people •Sharding by city •MPOF

  14. dispatch post trip maps / ETA services processing databases money

  15. supply demand humans humans supply demand Dispatch

  16. supply demand humans humans supply demand Dispatch

  17. supply demand humans humans supply demand Dispatch

  18. supply demand humans humans supply demand DISCO Dispatch

  19. supply demand humans humans supply demand DISCO geo by supply routing / ETA geo by demand Dispatch

  20. supply demand humans humans supply demand DISCO geo by supply routing / ETA geo by demand Dispatch

  21. supply demand DISCO geo by supply routing / ETA geo by demand Dispatch

  22. Source: Geometry on the Sphere: Google's S2 Library

  23. Source: Geometry on the Sphere: Google's S2 Library

  24. GOALS •reduce waiting •reduce extra driving •lowest overall ETAs

  25. time D1 Pickup request S1 best ETA +8 mins S1 pickup after 8 mins

  26. time D1 Pickup request S1 best ETA +8 mins S2 drop off +2 mins S2 ETA from drop off +1 min S1 pickup after 8 mins

  27. time D1 Pickup request S2 best ETA +3 mins S2 pickup after 3 mins

  28. time D1 Pickup request S2 best ETA +3 mins D2 Pickup request S2 best ETA +1 mins S2 pickup D2 S2 pickup D1 S2 drop off D1 S2 drop off D2

  29. supply demand DISCO geo by supply routing / ETA geo by demand Dispatch

  30. GOALS •performance •forwarding •language support •proper pipelining •checksums / tracing •encapsulation

  31. AVAILABILITY •everything retryable •everything killable •crash only •small pieces

  32. CULTURAL CHANGES •no pairs •kill everything •even databases

  33. service A load balancer service B

  34. service A service B load balancer

  35. LATENCY •overall latency ≥ latency of slowest component •1ms avg, 1000ms p99 •use 1: 1% at least 1000ms •use 100: 63% at least 1000ms •1.0 - 0.99^100 = 0.634 = 63.4%

  36. req 1, also B (2) service A service B (1) +5ms req 1, also B (1) cancel req 1 service B (2)

  37. DATACENTER FAILURE

  38. Location Updates partner app dispatch DC1 State Digest Location Updates S t a t e R e q u e s t dispatch DC2

  39. THANKS

Recommend


More recommend