SpinTheMic
Pro

Interview practice question

Async code that is not actually concurrent

Backend Engineering · Concurrency · Beginner

Your Python async endpoint uses async def, but requests are still handled one at a time. What could be wrong?

What a strong answer covers

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

  • Blocking calls inside async functions.
  • e.g. requests library, time.sleep, sync DB driver.
  • Blocks the event loop.
  • Use async libraries (httpx, asyncpg).
  • Or run blocking code in thread pool.
Practise this topic

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

See all topics