Skip to content
Discussion options

You must be logged in to vote

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:

  • Session to AsyncSession
  • CRUD helpers
  • dependencies
  • tests
  • transactions
  • Alembic env.py
  • relationship/lazy-loading behavior

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MohamedMostafa259
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants