Lesson 7 of 14
❮Prev Next❯

MSD-101 · Global taxi booking design

Design lab: same app, different problems

⏱ 15 min 🎮 Hands-on ☁ Azure

7of 14

Your note

My notes for this lesson

Select any text in the lesson to highlight it or add a note. Saved in this browser.

    No highlights yet. Select a sentence in the lesson, then pick a colour or add a note.

    Reading settings

    For every lesson, saved in this browser.

    Text size
    Line spacing
    Font

    With IaaS you rent the virtual machine. Microsoft looks after the building, power and hardware; you patch the operating system.

    ⚡ The 30-second answer

    Once you know the base design, new requirements are changes to it: what to keep, what to add, what to drop. Use the same six steps every time (requirements, estimate, split, draw, break, review) and the same patterns appear in food delivery, wallets, chat and games.

    • A six-step design recipe
    • Six new problems
    • Keep, add, drop
    • Patterns in other apps

    Try it

    Play with the design before you read about it. Everything runs on this page.

    A rider books tonight for a 6:00 am airport pickup tomorrow. Nobody should hold a socket open all night, and a driver must really turn up.

    Which building blocks belong in your design? Pick all that apply.

    1. The problemYour manager says: “Next quarter we add scheduled rides, parcel delivery and a bike taxi in a new country.” Three features, one platform, one week to propose a design.
    2. The design ideaNew feature = keep, add, drop. Never start from zero.
    3. In real lifeRide platforms grew into food, parcels and payments by reusing the same live location, matching and payment building blocks, with new rules on top.

    Start with a question

    Your manager says: “Next quarter we add scheduled rides, parcel delivery and a bike taxi in a new country.” Three features, one platform, one week to propose a design.

    Architects rarely design from zero. They change a working design without breaking it.

    Explain it like I'm 10

    You built a Lego house. Now you need a garage. You do not knock the house down; you add pieces and maybe move a wall.

    The technical explanation

    The recipe: requirements → estimate → split streams from commands → draw boxes → break it → review AI-written code. Run it for every new feature.

    Scheduled rides add a durable timer (Azure Service Bus scheduled messages) and a SCHEDULED status. Airport queues change the matching rule from nearest to first-come, first-served.

    Pooling turns a trip into a route with several rider legs. Parcels reuse the stream and matching, and upload proof photos straight to Blob Storage. 2G markets batch GPS and fall back to HTTPS.

    The patterns travel: idempotency keys protect wallet transfers, outboxes send chat messages typed offline, fan-out delivers group chat and live scores, and push-to-wake tells you money arrived.

    New problemMain change
    Scheduled ridesService Bus scheduled message, SCHEDULED status
    Bike taxi on 2GBatch GPS, HTTPS fallback, cached tiles
    Airport queueGeofence + FIFO queue instead of nearest
    PoolingMulti-stop routes, per-rider legs
    New Year surgeQueue + autoscale + rate limits
    Parcel deliveryBlob upload with SAS, DELIVERED + photo

    🧪 Design lab🔁 Other apps

    Real-world scenario

    Ride platforms grew into food, parcels and payments by reusing the same live location, matching and payment building blocks, with new rules on top.

    Ready for more?The full lesson adds the technical explanation, interview questions and quick revision.

    Test yourself

    5 questions. Get 4 right and this lesson is marked complete.

    1. 1. Which Azure feature fits “start matching 20 minutes before a 6 am pickup”?
    2. 2. At an airport, which matching rule is fair?
    3. 3. How should a driver upload a proof-of-delivery photo?
    4. 4. Which pattern protects a wallet transfer sent twice on a bad network?
    5. 5. What is the first step of the design recipe?

    Pass the quiz to complete this lesson.

    Next: Live driver location at scale →

    Questions people ask

    How do I practise mobile system design?

    Take a working design and change one requirement at a time: a new country, a new product, 10× load, a weak network. Write what you keep, add and drop, then check it against failures.

    How do I add scheduled rides to a taxi app?

    Save the trip with a SCHEDULED status and an idempotency key, then put an Azure Service Bus message scheduled for 20 minutes before pickup. When it arrives, normal matching starts and both apps get a reminder push.

    Are the same patterns used outside ride apps?

    Yes. Idempotency keys in payments, outboxes in chat and field apps, geo indexes in scooter rental and delivery, fan-out in group chat and live scores, push-to-wake almost everywhere.

    Interview questions

    How this topic comes up in system design interviews. Answer out loud first, then open the model answer.

    intermediate Add scheduled rides to an existing ride app.

    Save the trip as SCHEDULED with an idempotency key, put a Service Bus message scheduled for pickup minus 20 minutes, start normal matching when it fires, and push reminders to rider and driver.

    intermediate Add shared rides (pooling).

    Model a trip as a car route with rider legs, match by detour cost with a limit, keep state, ETA and fare per rider, and compute fares on the server.

    advanced Prepare the platform for a 10× New Year spike.

    Queue booking commands, autoscale on queue length and Event Hubs lag, rate-limit per user, keep idempotency on, show an honest high-demand screen, and load-test the spike weeks before.

    Quick revision

    Remember

    • A six-step design recipe
    • Six new problems
    • Keep, add, drop
    • Patterns in other apps
    • Before adding a box, ask which existing box can do the job with a new rule. The best design change is often the smallest one.

    One line to remember

    “New feature = keep, add, drop. Never start from zero.”

    Official documentation