Design HLD for amazon delivery guy flow
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-11-30Added By Anonymous
Source: Link
So I was asked this question that there is delivery guy, he will go to a warehouse and then from there he can scan some products. Whenever he does some activity, like starting delivery, those states should get update and we can have to send some mails also based on state change. At the time of delivery, he will ask for otp or take some picture for confirmation.
What is the HLD for it. I said that after scanning that request will go to some queue, I guess first it will go to some microservice then I can push in a kafka queue.
And then consumer will just pop the message {orderId: 12345, state:'In Transit'} and then consumer itself will update the postgress db.
Is that fine?