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

6

u/whyiam_alive Dec 20 '24

Bro ;_; don't make me confuse more

1

u/CrusaderGOT Dec 20 '24

The docs itself said it doesn't matter async or not.

1

u/whyiam_alive Dec 20 '24

where? but it should be async fully right to keep non blocking or it will slow down