2 ms·
What I'm saying if you don't need concurrency, don't trade off simplicity. For REST APIs and websites, probably not needed.
by kissgyorgy 4y ago
What I'm saying if you don't need concurrency, don't trade off simplicity. For REST APIs and websites, probably not needed.
- jerrygenser 4y agoRest 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.