Skip to interview prep
Apexed

57. A client times out after submitting an order. Does that prove the order failed?

EasyWeb & APIs

Technical
Show model answer

No. A timeout means the client did not receive a result within its deadline; the server might have accepted the order before the connection failed. Treat the outcome as unknown until it can be checked.

Use an operation identifier or supported idempotency key to retrieve or safely retry the same request. Show a pending or checking state instead of encouraging a fresh purchase that might create a duplicate.

What interviewers listen for

  • Unknown outcome
  • Stable operation identity
  • Check before a new action
A client times out after submitting an order. Does that prove the order failed — Software engineering interview question — Apexed