Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
davedx
· 1y ago · 0 comments
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?
Comments
[–]
jdsleppy
1y ago
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
1y ago
Async isn't about performance, the overhead it eliminates is small
[–]
TZubiri
1y ago
You spawn a thread when you get a request