JusticeTech System 〽️
رفتن به کانال در Telegram
Learn to learn before you teach
نمایش بیشترکشور مشخص نشده استدسته بندی مشخص نشده است
233
مشترکین
-124 ساعت
-17 روز
-230 روز
آرشیو پست ها
You can use this concept to build your local Uber like application in the future
31 اوت, 09:28
This is me analyzing a multi million dollars company and breaking down every system system 😄😄
31 اوت, 09:25
So why did Uber needs a routing/ETA system and why ETA becomes extremely important?
31 اوت, 09:24
Uber explicitly says its matching system considers real-world factors because the closest driver isn't always the quickest.
31 اوت, 09:23
A simple distance algorithm chooses A
But Uber wants something closer to B
because B can actually reach you faster.
31 اوت, 09:22
Suppose there are three drivers:
Driver Straight-line distance Road ETA
A 700 m 8 min
B 1.2 km 3 min
C 900 m 6 min
31 اوت, 09:21
As a developer you have to be very very vast as the way you think
Always think out of the box
31 اوت, 09:09
But "nearby" doesn't mean "best"
This is where things become really interesting.
31 اوت, 09:08
A driver belongs to a particular cell based on their GPS position.
So instead of asking "Which of 500,000 drivers is close to this rider?" the system can effectively ask "Which available drivers are in this geographic area and its neighboring areas?"
That dramatically reduces the search space.
31 اوت, 09:04
Think of the entire city like this:
⬡ ⬡ ⬡
⬡ ⬡ ⬡ ⬡
⬡ ⬡ ⬡ ⬡ ⬡
⬡ ⬡ ⬡
⬡
Each hexagon represents a geographic area.
31 اوت, 09:03
If there are 500,000 drivers and thousands of requests arrive simultaneously, you'd perform enormous numbers of distance calculations.
Instead, Uber uses geospatial indexing.
One of Uber's major technologies for geographic indexing is H3, an open-source hierarchical hexagonal grid system. Uber has described using H3 to support marketplace analysis and optimization, including pricing and dispatch.
31 اوت, 09:02
Imagine Lagos has 500,000 online drivers and you request a ride from Lekki Phase 1.
A naive programmer might write:
for driver in all_drivers:
calculate_distance(driver, rider)
That above lines of code simply means go through every driver I have, and calculate how far that driver is from the rider.
That is terrible at Uber's scale.
31 اوت, 08:59
Here is the biggest trick
Uber implemented a logic which is "don't search every driver"
31 اوت, 08:55
So when you press Confirm, Uber isn't starting from zero.
It's querying a live representation of the driver marketplace.
31 اوت, 08:54
Suppose 100,000 drivers are online across a city and their phones continuously send location information to Uber's backend
The important thing is that Uber doesn't wait until you request a ride to start looking for drivers.
31 اوت, 08:52
