Why not adopt a fully async stack? (asyncpg + async SQLAlchemy + async Alembic) #2271
Answered
by
mabuya02
MohamedMostafa259
asked this question in
Questions
-
First Check
Commit to Help
Example CodeDescriptionCurrent State
Proposed SolutionAdopt a fully async stack: Related
Operating SystemWindows Operating System DetailsWindows 11 Python Version3.14 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Answered by
mabuya02
Jun 23, 2026
Replies: 1 comment
-
|
I think a fully async stack is valid, but I can see why it may not be the default for a starter template. FastAPI being async at the HTTP layer does not necessarily mean every layer must be async. Moving the template to async would affect more than the driver:
For high-concurrency apps, asyncpg + AsyncSession can make sense. But for a general template, the current sync SQLModel/SQLAlchemy setup is simpler, easier to debug, and easier for new users to understand. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MohamedMostafa259
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think a fully async stack is valid, but I can see why it may not be the default for a starter template. FastAPI being async at the HTTP layer does not necessarily mean every layer must be async. Moving the template to async would affect more than the driver:
For high-concurrency apps, asyncpg + AsyncSession can make sense. But for a general template, the current sync SQLModel/SQLAlchemy setup is simpler, easier to debug, and easier for new users to understand.