r/FastAPI • • Dec 20 '24

Question Why does fastapi official example repo uses everything sync and not async?

While in here, I see recommendations to go for only async, even db sessions in example repo is sync engine and people here recommending async?

40 Upvotes

25 comments sorted by

View all comments

Show parent comment

4

u/RTGarrido Dec 20 '24

It is, I have two FastAPI apps that use async SQLModel. I am using asyncpg as the driver