Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


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.


Async isn't about performance, the overhead it eliminates is small


You spawn a thread when you get a request




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: