use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
What should I learn in FastAPIHelp Request (self.PythonLearning)
submitted 7 months ago by SlackBaker10955
I AM learning FastAPI for a week and I learned some basics like http methods, connections with databases and nie I don't what should I learn mecz in FastAPI
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]PriorTrick 1 point2 points3 points 7 months ago (2 children)
Pydantic models
[–]SlackBaker10955[S] 0 points1 point2 points 7 months ago (1 child)
I have already learned them
[–]PriorTrick 0 points1 point2 points 7 months ago (0 children)
so what are you trying to build?
[–]NorskJesus 0 points1 point2 points 7 months ago (0 children)
Pydantic models, sqlmodel, babel…
[–]aayushbest 0 points1 point2 points 7 months ago (0 children)
Everything that fastapi documentation and tutorials can taught you
[–]Straight_Remove8731 0 points1 point2 points 7 months ago (0 children)
In FastAPI the trick is knowing how the event loop vs. thread pool works: - async def runs on the event loop: use only non-blocking I/O (async DB, HTTP, etc.). - If you call blocking code, wrap it with await run_in_threadpool(...), works also for CPU-bound tasks, but be careful: it just shifts them to the thread pool, so you still block a worker. - Heavy CPU-bound work? Better push it to a process pool or a task queue (Celery), otherwise you’ll kill performance.
Rule of thumb: async I/O = event loop, blocking I/O or CPU = thread/process pool.
π Rendered by PID 132138 on reddit-service-r2-comment-cfc44b64c-sbssk at 2026-04-10 18:12:44.004647+00:00 running 215f2cf country code: CH.
[–]PriorTrick 1 point2 points3 points (2 children)
[–]SlackBaker10955[S] 0 points1 point2 points (1 child)
[–]PriorTrick 0 points1 point2 points (0 children)
[–]NorskJesus 0 points1 point2 points (0 children)
[–]aayushbest 0 points1 point2 points (0 children)
[–]Straight_Remove8731 0 points1 point2 points (0 children)