SpinTheMic
Pro

Interview practice question

Converting a slow sync API to async

System Design · APIs and Communication · Experienced

A partner-facing API sometimes takes 40 seconds, and partners' HTTP clients time out. You cannot make it faster quickly. How do you redesign the interaction?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Return 202 with operation ID.
  • Status polling endpoint.
  • Optional webhook callback on completion.
  • Idempotency to avoid duplicate jobs.
  • Keep sync path for fast cases.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics