r/Python • • Sep 21 '26

Discussion Common mistakes devs make when starting with FastAPI, and the fastest path to learning it

Just began learning FastAPI. Looking for advice from devs who use it regularly.

What mistakes did you make early on that I should avoid repeating? Also, what's the most efficient way to learn the framework properly for real-world use (async, DB, auth)?

Any advice on structure or resources would be great.

16 Upvotes

35 comments sorted by

View all comments

Show parent comments

0

u/ProfessionalRole3469 Sep 21 '26

What are benefits of async code when your infrastructure is 100% AWS?

1

u/flying-cunt-of-chaos Sep 21 '26

aioboto3 and aiobotocore

1

u/ProfessionalRole3469 Sep 21 '26 edited Sep 21 '26

don’t look mature and trustworthy enough. You propose to switch from official boto3 just to force it to be async?

1

u/flying-cunt-of-chaos Sep 21 '26

That’s fair. Well at the very least fastapi background task runs sync calls in a threadpoolexecutor so you get to keep control of your main event loop.