All jobs / Automation developer

Automation developer interview question · 3–5 years

One synchronous database call inside an async handler makes the whole service slow. Why?

The strongest answer

A blocking call stops the event loop, so no other coroutine can run until it returns — use an async driver, or push it to a thread with asyncio.to_thread

Why it works

Right. One blocking call in an async service is an outage waiting for load.

What a good answer covers

Answers that fall short

Who gets asked this

More Automation developer questions