📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

A call to another service timed out. Did the other service do the work? What does that mean for how you write the calling code?

Beginner Theory Beginner distributed-systems idempotency partial-failure retries timeouts

🎯 Key points

  • A timeout means the outcome is unknown, not that the call failed
  • The request may be lost, processed with the reply lost, or still running
  • Retry only operations that are idempotent by design (PUT, DELETE, upserts)
  • Make non-idempotent operations (POST payment) safe to retry with an idempotency key the server de-duplicates on
  • Query the outcome or reconcile when you can't retry safely
  • Bound retries and stop with a circuit breaker so an unknown outcome doesn't become a retry storm

⏱ 30-second answer

You can't know. The request may have been lost, processed with the reply lost, or still be running. So the caller must treat a timeout as an unknown outcome: retry only operations that are idempotent, make others safe to retry by sending an idempotency key the server de-duplicates on, or check the outcome (status query, reconciliation) before acting again. Keep retries bounded and behind a circuit breaker, with a fallback for the user, so a slow dependency doesn't turn into a retry storm.

🔍 What the interviewer is checking

Checks understanding of partial failure, the core consequence of the fallacies.

↩ Usually asked after

More in Distributed Systems Core Concepts

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me