Hacker News new | ask | show | jobs
by crazypython 1870 days ago
> Flask was just a PITA to deploy properly in a way that it could handle lots of concurrent connections without a massive memory footprint, and async in Python is a mess.

That makes me concerned. Does anyone here know if FastAPI is better? How many concurrent connections could your Express app handle at once?

1 comments

Yes. Night and day. I haven't got too deep into it, but FastApi allows writing async def right out of the box, super easy to set up. Uvicorn is stupid fast and easily configurable. There is also fledgeling asgi (async wsgi) support iirc.