Skip to content

UpVey

  • Business
  • Cottage Industry
  • Warehouse
  • Investment
  • NGO
  • System Design
  • Blog

Design a architecture for food delivery service like Swiggy or ubereats

June 10, 2020 by akashkumardtu

No design is good or bad, it’s just about the fulfillment of the requirement in optimized way

If you have been asked or preparing for system design interviews and looking for perfect system design for food delivery app or service then find out what perfect means for you. So, as the first part of any system design process, we’ll proceed to find what this service or app must perform.

Step 1: Requirement Gathering

So a basic food delivery service should have these features-

  1. Restaurant Listing and Search – Users can search for a restaurant
  2. Food Listing and Search – Can search for foods in the restaurant
  3. Order and Payment – Can order food and make payment
  4. Delivery – Can track the delivery

Now based on the requirements we are having, let’s try to find out the users involved-

  1. Back-end Service Agent – For restaurant listing
  2. Restaurant Owners – Food Listing
  3. Customers – Ordering
  4. Delivery Executive – Delivery of food

Now that we found our end users and also the services we are offering. Let’s try to design the architecture to fulfill it-

Here we have our Service to handle all the requirements and MySQL as database. Its the simplest System design anyone can think of for this type of app.

Is there anything wrong here? No This can serve our needs but what will happen if we grow? Millions of orders? at that point, our system will not able to scale.

So, to design a system we must find out the scalability required, for 10 orders per day our above system is very good. It is a wrong practice to design the above system without having scalability considerations.

So, let’s dive into the next step-

2. Understanding Scalability requirement

This understanding helps us decide how to break our service, which database to use, and other requirements.

For this, we should think of these questions-

What will be the geographical scaling i.e. is this app for the purpose of serving only a city or in future the vision is to grow globally? – Let’s assume it is planned Globally

How many Customers are we expecting in the short and long term?  – 1 billion

How many Restaurants? – 1 million

How many searches and orders a day? – 1 billion searches and 2 million orders a day can go up to 5 million a day

Based on all of these we can calculate which all components are critical and required to have isolated responsibility?

From the above figures, we get to understand that we must build a scalable application that can handle a huge customer base and must make the restaurant searchable and must separate out the order processing service as traffic can vary.

 

Post navigation

Previous Post:

Income Tax Calculator

Next Post:

10 golden rules of investing

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How to find job
  • High Security Registration Plate (HSRP)
  • National Education Policy 2020
  • Highlights of Labour Codes 2020
  • 10 Best places in the world to live
  • 10 Best Places in India to live and work
  • How to find Jobs for Ex-servicemen in India
  • Coal Loading and Transportation Scheme for Ex-servicemen in India
  • Best Business Email Hosting Providers for 2021
  • 101 Best Business Ideas

Categories

  • Business
  • Cottage Industry
  • Education
  • Ex-Serviceman
  • Farming
  • Investment
  • Jobs
  • Labour Laws
  • NGO
  • System Design
  • Travel Tips
  • Warehouse

Tags

Business Email Hosting Service (1) Coal Loading and Transportation Scheme (1) Copyright (1) Eligibility for Gramin Bhandaran Yojana (1) Ex-serviceman business opportunity (1) Ex-Serviceman jobs in India (1) Food Delivery system design (1) Four working days (1) Free Business Email Hosting (1) FSSAI (1) Gramin Bhandaran Yojana (1) GST (1) HSRP (1) Importer Exporter Code (1) Indirect Tax (1) jobs (1) Jobs for Ex-servicemen (1) Jobs for Veterans (1) Labor Codes 2020 (1) Labour Codes 2020 (1) Labour Codes 2021 (1) Labour Codes of India (1) Limited Liability Partnership (1) Livable Place (1) MSME (1) NDA (1) Objectives for the Gramin Bhandaran Yojana (1) One Person Company (1) Partnership Firm (1) Patent (1) Portals for Ex-serviceman (1) Private Limited Company (1) Professional Business Email (1) Proprietorship Firm (1) Public Limited Company (1) Purpose of Gramin Bhandaran Yojana (1) Shop & Establishment Act (1) Software Interview Questions (1) Swiggy system design (1) System Design Interview Questions (1) Trademark (1) Uber eats system design (1) Visiting place (1) warehouse (1) Zomato system Design (1)

Recent Comments

  • Mead Valenzuela on Modern Farming Methods
  • Albertsons Dallas on Modern Farming Methods
  • Modern Farming Methods – UpVey on Medicinal Plants Cultivation
  • Medicinal Plant Contract Farming – UpVey on Medicinal Plants Cultivation
  • Medicinal Plant Contract Farming – UpVey on Modern Farming Methods

Archives

  • February 2021
  • November 2020
  • October 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
© 2021 UpVey UpVey - Upgrading Way