Trace product, identity, payment, and fulfillment flows.
Identify trust and security requirements.
Evaluate usability and reliability.
E-commerce combines catalogs, search, carts, identity, payment, inventory, fulfillment, support, and analytics. A checkout is a distributed workflow: it needs idempotency, authorization, transaction boundaries, clear status, privacy, and recovery when a provider fails.
AnswerTo prevent retries from creating duplicate orders or charges.
2. What should the system do on uncertain payment status?
AnswerUse a reconciliable pending state rather than blindly retrying or reporting a false success.
Homework
Design an online bookstore workflow.
Specify data, security, errors, and audit.
Explain a provider outage response.
Sample answerUse authenticated sessions, server-side price and inventory checks, tokenized payment, idempotency keys, transactional order state, minimal personal data, and reconciliation. A provider timeout creates pending status and avoids duplicate charging until confirmed.