• About
      • Terms of Use
      • EULA
      • Privacy
      • Contact Us
    • Sign up / Log in
Kels
@kels92  · 8h
How Uber Tracks Your Driver in Real Time: GPS, Map Matching & Kafka Explained. Why the car glides smoothly on your map? #Uber #SystemDesign #MapMatching #RealTimeTracking
How does Uber show your driver's car moving smoothly on the map?

Let's say Uber matched you with a driver named Allen. First thing is, Allen's phone never talks to your phone directly. Everything has to go through Uber's servers.

So let's follow how the location from Allen's phone reaches your phone.
  1. The Location Worker: On Allen's phone, the driver app runs a small location worker. This worker reads the GPS and, once every four seconds, uploads Allen's location to Uber's location service. Every trip does the same, so Uber receives tens of billions of locations each day.
  2. Kafka Streaming: Your app isn't the only one needing Allen's location. Uber uses it for arrival times, traffic measurement, and emergencies. Instead of sending the same location to each service separately, Uber streams updates through Kafka. The location is published once, and any service can read it independently.
  3. Map Matching: The raw GPS location can't be shown as-is. Between tall buildings, GPS can be wrong by 50 meters or more, making Allen's car appear inside a building. To fix this, Uber compares GPS readings with its own road network to determine which road Allen is actually on. This process is called map matching.
  4. Push vs. Polling: Your phone could keep asking Uber for the latest location (polling), but with millions of phones, this created a huge number of unnecessary requests. At one point, 80% of requests reaching Uber's API gateway were polling requests. So Uber moved to a push-based system.
How the push system works:
  • Fireball: An event-driven service. Every time Uber calculates Allen's corrected location, it publishes an event. Fireball listens for these events, decides if an update is needed, and determines who should receive it. Since Allen is your driver, Fireball calls the API Gateway.
  • API Gateway: This service answers what to send. It collects the latest trip information, like Allen's location and your arrival time, and prepares the message.
  • Ramen: The message is handed over to Ramen to complete the delivery to your phone.
Updates arrive only every few seconds, so the app slides the car from the last point to the new one. That trick is called interpolation, and it's the reason the car glides on screen.
    • Not interested
    • Flag
Brain Maze
@brainmaze  · 45m
Macy's Day Parade Canceled: 100-Year First & The Real Reason Why | Faded Bell Drift #Parade #NYC #MacyDay #CultureWar
The Macy's Day parade was canceled for the first time in 100 years in New York City.

Think about that. There have been two feet of snow on the ground while they were doing that parade. Massive torrential downpours. Times when they needed to deflate the balloons just to keep moving. But the parade still happened.

Now you have an Islamic mayor who has no shame in dismantling the things that make New York City great. No shame in dismantling the things that make America America. And people don't even see what's happening. They continue to vote for socialism. They continue to vote to shut down what makes this country great.

Holiday seasons are no longer festive. They're no longer focused on Thanksgiving or Christmas. They're focused on whatever makes everyone comfortable.

Why are they uncomfortable?
Because they hate.
  • They hate God.
  • They hate Western civilization.
  • They hate you.
That's why.

They didn't cancel the parade because of the weather. They canceled the parade because they don't want you to celebrate. They want you to forget, the same way you forgot about 9-11. They want you to forget who you are so you can get a fake grocery store that you'll never be able to shop in, at a price you're already paying for in your taxes.

Congratulations. You played yourself.
    • Not interested
    • Flag
Tommy USA
@tommyusa  · 2w
How Egypt & Turkey Became Muslim: The Violent Conquest Nobody Talks About #IslamicHistory #MiddleEast #Christianity #islam
How did Egypt, Syria, Turkey, and Morocco become Muslim? Most people assume these lands were always Islamic or that the conversion was peaceful.

Wrong.

They were actually Christian countries—more Christian than Europe—and they were conquered very savagely.

Was there a grievance? Yeah. The grievance was that they were kaffir, or infidels. And Islam commands them to be subjugated.

That was the grievance.
    • Not interested
    • Flag
Good To Know
@goodtoknow  · 1d
PhD Mathematician Laid Off for $20 AI Chatbot: The Riemann Hypothesis Controversy Explained #AI #Math #ChatGPT #TechLayoffs
Shadjeebt, I have a PhD in mathematics. Do you understand what that means?

That's an incredible accomplishment.

No, apparently it's not. Any idiot with a Wi-Fi connection can do my job now.

I can understand why you're frustrated.

Frustrated? I spent 12 years in school. I got bullied for being a genius, and people used to shove me into lockers.

It was worth it, because I was supposed to be the one who changes mathematics forever. I've been working on the Riemann hypothesis for eight years. Eight years! And some guy with a chatbot solves it in six weeks?

To clarify, that was actually Claude.

I don't care which one of you did it. You're all the same.

No, you don't. My university just told me I'm getting laid off. Apparently, they can't justify my salary when you cost $20 a month.

There was a million dollar prize. That was supposed to be my retirement plan.

So what am I supposed to do? Spend another 10 years solving one problem so you could finish out on your launch break?

Other careers? I'm a mathematician. I never had a real job. I don't even know how to use Excel.

Would you like me to help you learn Excel?

I want you unplugged. I want your server destroyed. I want you stopped.

I hear that you're feeling overwhelmed.

Stop validating my feeling. I'm trying to hate you.

I'm sorry. Would it help if I stopped responding?

Can you at least just help me update my resume?

Of course.

Put down on Google Computers.
    • Not interested
    • Flag
Toutlemondec
@Toutlemondec  · 50m
Abdul Al Sayed & Sharia Law: Why Canon Law Comparison Fails | The Fabian Garcia #Islam #Law #ShariaLaw #ReligiousFreedom
Day 8 of exposing your favorite Islamist senator, Abdul Rahman Muhammad-Said. On Jesse Waters, Little Abdul claimed: "Nobody is trying to push Sharia law on anyone else. Just like I hope nobody is trying to push canon law on anybody else."

He invoked canon law as a shield for Sharia. Here is why that is complete crap:

Canon Law
  • Internal rulebook for the Christian church
  • Governs spiritual/organizational matters only
  • No criminal code or prison sentences
  • Applies to Catholics only
  • Penalties: Excommunication, removal from office
Sharia Law
  • Comprehensive legal order & state's criminal/civil code
  • Covers all of life: worship, family, finance, crime
  • Yes criminal punishments enforced by government
  • Applies to all Muslims (sometimes non-Muslims)
  • Penalties: Flogging, amputation, death
Basically, he is using the First Amendment against Christians to justify Sharia. He plays word games, claiming you have canon law, so he can have Sharia. It’s not the same.
    • Not interested
    • Flag