| ▲ | davedx 2 days 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 2 days ago | parent | next [-] | |
Multiple 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. | ||
| ▲ | kurtis_reed 2 days ago | parent | prev | next [-] | |
Async isn't about performance, the overhead it eliminates is small | ||
| ▲ | TZubiri 2 days ago | parent | prev [-] | |
You spawn a thread when you get a request | ||