|
|
|
|
|
by socialist_coder
1456 days ago
|
|
"When you don't need it" If you're doing any kind of database / external network calls - won't you gain a huge amount of requests per second? I ask partly because on one of my projects, we have a fastapi app, but it's not using async, and I have been toying with the idea of converting it to async. It will take some work though because it uses libs that don't support async. I thought the advantages would be worth it because we hit postgres and/or redis on all requests. |
|
Any other use-case you are better off going with the simplicity of a sync framework like Flask. For databases you are way worse with async, see why from the Python database god himself: https://techspot.zzzeek.org/2015/02/15/asynchronous-python-a...