Friday, October 26, 2018

System design Uber



Uber architecture relies on supply and demand.

  • Demand is for the user and supply is provided by the car
  • It uses a flat map from google to generate unique cell across the world regions
  • Each cell would have a  unique id
  • It would draw a circle that would have one or more cells as shown below



  • Once they have the circle the app would find all the vehicles that are available in that circle
  • Every 4 secs supplier and demander information is sent to the server
  • Each block are services by its own

LOCATION
  The app knows the exact drop and pick up stop based on previous experience

WAF:
     Filters all the incoming ip

LB:
     It is the load balanceR

HTTP Rest
    This is built using node. This is responsible for receiving and sending data from the server and back to the user

KAFKA REST API
    This is responsible for receiving all the traffic sent by the supply and demand

WEB SOCKETS node
    This is responsible for constantly receiving the state of the supply and demand

DISCO
    This is built on consistent hashing of gps location and server in disco is selected
     Ex each region would be given particular loads from different cells

RDBMS
    It has RDBMS system that used to store relational data

NOSQL region
   Different schema-less data is stored across different nodes. They use MySQL, however we can use  Cassandra or any other sources for doing the same

HDFS FILE SYSTEM
   Data is stored here for analytical purposes

 ML FRAUD DETECTION
   This server runs machine learning algorithm to check fraud detection by the user and the driver

MAP CREATION AND ETA CALCULATION
   It uses google maps, location and existing previous rides to calculate ETA for a given ride

PRICING AND SURGING
   This is responsible for pricing and surging for the app

SPARK AND STORM
   This is used for batch and stream processing

ANALYTICS
   This is done using jupyter and ELK stack

LOGS AND SERVICES
   The logs are loaded from all the services using kafka. These are fed to elastic search and kabana for analytics

BACKUP CENTER

  •  Uber has its own backup data center.
  •  In case of failure data center is switched
  •  It is the replica, of the existing system, however it would not have any data
  •  Data would be copied from all the suppliers app and loaded to the new data center
  •  This happens asynchronously without rider and the driver noticing the changes 









13 comments:

  1. Such a strikingly basic article.I basically wish to offer a creature proceed for the standard data you have perfect here on this post. uber customer service

    ReplyDelete
  2. This is something I actually have to try and do a lot of analysis into, thanks for the post website design san francisco

    ReplyDelete
  3. Is your webdesigner looking for a job. I think your site is great. web design agency los angeles

    ReplyDelete
  4. This is very useful, although it will be important to help simply click that web page link: 3D Scanning

    ReplyDelete
  5. Waow this is quite pleasant article, my sister love to read such type of post, I am going to tell her and bookmarking this webpage. Thanks خرید فالوور ارزان

    ReplyDelete
  6. Youre so cool! I dont suppose Ive read anything like this just before. So nice to seek out somebody with many original thoughts on this subject. realy appreciation for starting this up. this excellent website are some things that is needed online, an individual after a little originality. useful task for bringing a new challenge for the internet! wordpress website design packages

    ReplyDelete
  7. Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your blog? My website is in the very same area of interest as yours and my users would really benefit from a lot of the information you present here. Please let me know if this okay with you. Regards! mofa führerschein online kaufen

    ReplyDelete
  8. I agree with most of your points, but a few need to be discussed further, I will hold a small talk with my partners and maybe I will look for you some suggestion soon. ufaxs

    ReplyDelete
  9. I agree with most of your points, but a few need to be discussed further, I will hold a small talk with my partners and maybe I will look for you some suggestion soon. รีวิวเว็บพนันUFABET

    ReplyDelete
  10. I agree with most of your points, but a few need to be discussed further, I will hold a small talk with my partners and maybe I will look for you some suggestion soon. รีวิวคาสิโนออนไลน์

    ReplyDelete
  11. I agree with most of your points, but a few need to be discussed further, I will hold a small talk with my partners and maybe I will look for you some suggestion soon. http://massagespa204.website2.me/

    ReplyDelete
  12. 
Buy a class b driver's license (( WhatsApp:+49 15213802871))
Buy a motorcycle license ((WhatsApp:+49 15213802871))
Buy a class b driver's license ((WhatsApp:+49 15213802871))

The truth about buying a driver's license.

These days we have a lot of people commenting on how to buy driver license, where to get driver license. Is it really possible to get a driver's license online without written or practical exams?
YES, IT'S POSSIBLE.
There are many websites on the internet claiming to sell driver's licenses. They tell you about database registrations, they tell you about shipping, and you have a driver's license on hand ready to track your activity.
We have made a list of websites that are trustworthy and offer services within time limits.

List of trusted websites that provide a registered driver's license.



    ReplyDelete