System Design - Logistic System

Oct 28, 2021 24 Comments

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.

comments

Want to comment? LOG IN or SIGN UP
TOP 24 Comments