Remix.run Logo
TZubiri 3 days ago

>Same experience working on FastAPI projects. I don’t know how big production apps are maintained (and supported operationally) with the mess that is python+async+types.

In my experience async is something that node.js engineers try to develop/use when they come from node.js, and it's not something that python developers use at all. (with the exception of python engineers that add ASGI support to make the language enticing to node developers.)

davedx 2 days ago | parent [-]

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