News for hackers. Stuff that matters.
Re:What I Learned from Making the Python Back End for My New... by ruicaridade on Wednesday October 16, 2024 @12:59PM (#41861297)
Indeed, we use FastAPI in quite a large scale! I would not trade FastAPI for anything else at this point. Before the typing module became ubiquitous there used to be a lot of "magic" frameworks that made heavy use of Python's dynamic nature; both Django and Flask fall within this category: I am not a fan of untyped Python, at all.

There's some gotchas in the way FastAPI works, mostly due to its usage of thread pools and the GIL. I would recommend anyone starting a project to exclusively use asynchronous I/O (SQLAlchemy supports async with asyncpg), as FastAPI is very clearly meant as a pure ASGI framework, despite what they claim.

Re:What I Learned from Making the Python Back End for My New... by nickpadge on Wednesday October 16, 2024 @06:19PM (#41864410)
How is your experience with async SQLAlchemy with FastAPI?Ive experienced a handful of nasty bugs, specifically around how connection pooling is handled.