Problem Statement
How do you decide between a Sequence diagram and an Activity diagram when explaining a design to interviewers?
Explanation
Pick a sequence diagram when the focus is who talks to whom and in what order. It highlights calls, retries, and time-based concerns like timeouts or backoffs.
Pick an activity diagram when the focus is the flow of work, branching conditions, and parallelism. It clarifies business rules, forks, and joins without tying you to specific participants.
Code Solution
SolutionRead Only
Decision: sequence for API call flow; activity for checkout workflow
