Sequence Diagram for the Amazon Locker Service
Create a sequence diagram for product return in the Amazon Locker system.
We'll cover the following
Sequence diagrams are a great way to understand the interactions between different entities and objects in the system. There can be different sequence diagrams that we can create for our Amazon Locker system. In this lesson, we will create sequence diagrams for the following interaction.
Return package
The sequence diagram for the package return should have the following actors and objects that will interact with each other:
Actor:
Customer
Object:
Locker
System
Here are the steps in the return package interaction:
The customer requests the system to return a package.
If the package return request is approved:
The system requests an available locker.
The locker is returned to the system.
The system sends an OTP code to the customer.
The customer verifies their code.
If verification is successful:
The system assigns a locker to the customer.
The customer places their package in the locker.
Else:
The customer receives an error message.
Else, if the package return request is not approved:
The customer is informed that the return request is not approved.
Based on the order above, the sequence diagram of package return in the Amazon Locker system is given below:
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.