Designing Uber's highly available Emergency SOS Service



3786 views Backend System Design



The emergency button on the Uber app is life-saving; and the service powering it needs to be available 24 x 7, no matter what!

So, how did Uber design such a service? How did they make it highly available; here’s a quick gist about its system design 👇‍

Information Gathering

When the emergency button is pressed, we first need to gather all the critical information and send it to the server. The critical information could be

  • Current Location
  • Vehicle and Trip Details
  • Rider and Driver Details

Capturing Location

When the emergency button is pressed, we do not just need to fetch the location at that moment, instead we continuously capture the location and keep sending it to the backend.

This would help us notify the nearby police and help them keep an eye on the movement.

Lat-long are not enough

To make tracing effective, we cannot just share the lat and long because they are incomprehensible; hence we try to deduce the address from the lat-long.

This process of deducing address from lat-long is called Reverse Geocoding.

Notifying the police

Uber uses a 3rd party service named RapidSOS to notify nearby local authorities.

RapidSOS provides APIs to register an emergency and send live updates about the emergency. It takes care of notifying the local authorities and providing them with the necessary information.

Notifying others

Uber not only notifies the police through RapidSOS, but it also notifies

  • emergency contacts
  • internal support staff for close follow-ups

The notification to all channels happens in parallel to increase the probability of someone getting notified.

Reliability and Availability

Given that the emergency service deals with events that are urgent, important, and critical; it is extremely crucial that the service is reliable and highly available; which means

  • no events loss
  • persistence and retries
  • fallback to every single component

Key Decisions

  1. Location getting ingested in Kafka
  2. Kafka guarantees persistence and reprocessing if required
  3. RapidSOS can be down and hence apply retries on consumers
  4. Emergency service notifies emergency and internal staff async

Arpit Bhayani

Arpit's Newsletter

CS newsletter for the curious engineers

❤️ by 30000+ readers

If you like what you read subscribe you can always subscribe to my newsletter and get the post delivered straight to your inbox. I write essays on various engineering topics and share it through my weekly newsletter.




Other essays that you might like


Thundering Herd Problem and How not to do API retries

709 views 68 likes 2023-01-31

When the network is unreliable the clients retry the APIs to ensure completion. This approach works when there are fewer...

Designing Idempotent API Endpoints for Payments at Stripe

3401 views 231 likes 2023-01-29

https://www.youtube.com/channel/UC_b1GUJv_2QiMP4BxC9-Dxg/join Learn System Design: https://arpitbhayani.me/masterclass ...

How Slack efficiently classifies emails at scale with an eventually consistent system

2224 views 83 likes 2023-01-13

https://www.youtube.com/channel/UC_b1GUJv_2QiMP4BxC9-Dxg/join Learn System Design: https://arpitbhayani.me/masterclass ...

How @ShopifyEngineering avoids hot shards by moving data across databases without any downtime

3427 views 130 likes 2023-01-08

https://www.youtube.com/channel/UC_b1GUJv_2QiMP4BxC9-Dxg/join Learn System Design: https://arpitbhayani.me/masterclass ...


Be a better engineer

A set of courses designed to make you a better engineer and excel at your career; no-fluff, pure engineering.


Paid Courses

System Design Masterclass

A masterclass that helps you become great at designing scalable, fault-tolerant, and highly available systems.

1000+ learners

Details →

Redis Internals

Learn internals of Redis by re-implementing some of the core features in Golang.

46+ learners

Details →

Free Courses

Designing Microservices

A free playlist to help you understand Microservices and their high-level patterns in depth.

106+ learners

Details →

GitHub Outage Dissections

A free playlist to help you learn core engineering from outages that happened at GitHub.

251+ learners

Details →

Hash Table Internals

A free playlist to help you understand the internal workings and construction of Hash Tables.

427+ learners

Details →

BitTorrent Internals

A free playlist to help you understand the algorithms and strategies that power P2P networks and BitTorrent.

192+ learners

Details →

Topics I talk about

Being a passionate engineer, I love to talk about a wide range of topics, but these are my personal favourites.