I was recently asked this question in a system design interview
- Design a delivery assignment system to automatically assign deliveries to delivery partners based on the following criterion:
- . Nearest distance from source: The delivery partner’s geographical location should be the closest to the source which initiate the delivery.
- 1. The system determines eligible partners, and gives them an invitation to accept the delivery in order of distance from the source.
- 1. The invitation should auto-expire in 10 seconds.
- 2. If the partner does not accept the invite within the specified time, the invitation to the delivery partner should be canceled then sent to another eligible partner.
How would you design this system?
Especially the part related to expiring a request in 10 seconds . also how would you inform the delivery partner and get a response from them? I could think of notifications bit how do we keep a track of all the requests to be sent to a particular partner.
Want to see the real deal?
More inside scoop? View in App
More inside scoop? View in App
blind
SUPPORT
FOLLOW US
DOWNLOAD THE APP:
FOLLOWING
Industries
Job Groups
- Software Engineering
- Product Management
- Information Technology
- Data Science & Analytics
- Management Consulting
- Hardware Engineering
- Design
- Sales
- Security
- Investment Banking & Sell Side
- Marketing
- Private Equity & Buy Side
- Corporate Finance
- Supply Chain
- Business Development
- Human Resources
- Operations
- Legal
- Admin
- Customer Service
- Communications
Return to Office
Work From Home
COVID-19
Layoffs
Investments & Money
Work Visa
Housing
Referrals
Job Openings
Startups
Office Life
Mental Health
HR Issues
Blockchain & Crypto
Fitness & Nutrition
Travel
Health Care & Insurance
Tax
Hobbies & Entertainment
Working Parents
Food & Dining
IPO
Side Jobs
Show more
SUPPORT
FOLLOW US
DOWNLOAD THE APP:
comments
I'd expect a poor connection being common.