DEV Community

System Design - 24. Geospatial Indexing: How Uber Finds the Nearest Driver Among Millions in Milliseconds (opens in new tab)

Discussed on DEV

Geospatial Indexing: How Uber Finds the Nearest Driver Among Millions in Milliseconds Series: System Design Mastery — Day 8 of 15 Reading time: 11 min Covers: Quadtrees, Geohash, Google S2, Uber H3, Real-Time Index Updates The Query That SQL Was Never Built For You open Uber. The app needs to answer: "Which drivers are within 2km of this exact latitude/longitude, right now, out of the millions of drivers active worldwide?" A naive SQL approach: SELECT driver_id, latitude, longitude FROM drive...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help