3 ms·
Rest APIs and websites are IO bound. Your python program is there purely coordinating between disk io, database (network) io, calls to other services (io). You
by jerrygenser 4y ago
Rest APIs and websites are IO bound. Your python program is there purely coordinating between disk io, database (network) io, calls to other services (io). You can be choreographing thousands of requests concurrently and still barely doing any cpu.
The overhead to do a similar service using threadpools is much higher and the reason asyncio exists.