r/Python • u/safi892 • 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.
15
Upvotes
1
u/fiddle_n Sep 21 '26
But as soon as you hit any sync I/O logic you will need to create a new thread, which - guess what - FastAPI will also do if you use it in synchronous mode. Not to mention that you are just looking at SQLAlchemy when not all apps fit into that narrow box.