prepare

When should an API call stay synchronous, and when should work become asynchronous?

Beginner interview check

Answer it before reading the sample answer

This is the beginner version of the interview experience: check your fundamentals, then read the real-world answer below.

Select one

Time limit: 2:00

1 / 1

2:00

When should an API call stay synchronous, and when should work become asynchronous?

Explanation

Hint: Identify the requirement first, then choose the approach that addresses the main constraints, trade-offs, failure modes, security, cost, and verification.

Correct answer: I would approach “When should an API call stay synchronous, and when should work become asynchronous?” by clarifying the requirements first, then using these considerations: in a real interview, i would start by clarifying the problem and assumptions. for “when should an api call stay synchronous, and when should work become asynchronous?”, i would start with user-facing latency and completion requirements, then consider retries, partial failure, and back-pressure, and explain how the caller learns completion status. i would close by explaining the trade-offs, operational implications, and what i would verify after launch.. I would state my assumptions and defend the trade-offs rather than presenting the choice as universally correct.

Why the alternatives are weaker:

  • Calling everything asynchronous because it scales
  • Ignoring user experience
  • Choosing a queue without explaining delivery and retry behavior

What the interviewer is testing

  • Requirement clarification
  • Latency and UX reasoning
  • Failure and retry thinking

Common Mistakes

  • Calling everything asynchronous because it scales
  • Ignoring user experience
  • Choosing a queue without explaining delivery and retry behavior

Interviewer Follow-ups

  • What assumptions would you clarify before committing to the design?
  • What changes if the scale, reliability target, security requirement, or budget changes?
  • What is the biggest failure mode in your proposed approach?

Real-World Sample Answer

I would approach “When should an API call stay synchronous, and when should work become asynchronous?” by clarifying the requirements first, then using these considerations: in a real interview, i would start by clarifying the problem and assumptions. for “when should an api call stay synchronous, and when should work become asynchronous?”, i would start with user-facing latency and completion requirements, then consider retries, partial failure, and back-pressure, and explain how the caller learns completion status. i would close by explaining the trade-offs, operational implications, and what i would verify after launch.. I would state my assumptions and defend the trade-offs rather than presenting the choice as universally correct.

Learning checkpoint

Mark this guide complete to include it in your local Engineering Journey.

Knowledge path

Connected concepts

Explore the knowledge graph

WATCH WITH THIS TOPIC