3 ms·
But then how to you build a performant API in python if you don't use async? Do you give your API's giant thread pools?
by davedx 1y ago
But then how to you build a performant API in python if you don't use async?
Do you give your API's giant thread pools?
- jdsleppy 1y agoMultiple processes, multiple threads per process, and/or greenlets (monkey patch network calls, like async but no keywords involved). Scale out horizontally when there's a problem. It could get expensive.
- TZubiri 11mo agoYou spawn a thread when you get a request
- kurtis_reed 11mo agoAsync isn't about performance, the overhead it eliminates is small