r/programming • u/Holiday_Serve9696 • Aug 02 '25
How FastAPI Works
https://fastlaunchapi.dev/blog/how-fastapi-works/[removed]
117
Upvotes
r/programming • u/Holiday_Serve9696 • Aug 02 '25
[removed]
266
u/sojuz151 Aug 02 '25
Python developers heroically solve problems no other programming language has ever had.
34
u/CumTomato Aug 03 '25
I expected something more in depth from a "how FastAPI works" article, not just describing what it is. You could go more into starlette, describing what do you mean FastAPI was built with async in mind from day one? How does the way it does things compare to other frameworks etc
42
u/Valken Aug 02 '25
Your code samples are broken in light mode.
28
u/Iggyhopper Aug 02 '25
Boring. I'll wait for the revamp:
2 Fast 2 API
29
u/UsefulIce9600 Aug 02 '25
As a long time user of FastAPI: I'm curious about why the creator decided to call it 'fast'
38
u/McGill_official Aug 02 '25
Always felt so backwards writing a type hint on a handler then having the validation performed on it.
But then again everything else in Python is backwards.
14
u/Full-Classroom195 Aug 02 '25
I couldn't imagine myself spinning up a startup and using SEO blogpost marketing strat in r/programming. Don't you feel unfomfortable doing this?
3
u/aniforprez Aug 02 '25
How does this compare to something like Litestar?
3
u/licon4812 Aug 05 '25
ASP.NET Core is better. If you Python kiddies need baby syntax use F#
1
u/Perfect-Praline3232 Aug 04 '25
Good quick overview. I was wondering what FastAPI is, thanks.
1
u/Nness Aug 05 '25
Recently spent a few weeks building some personal tools using FastAPI and really liked the out-of-the-box valiation and API spec generation.
But I eventually ported the entire thing to Node.js... Not that it was a FastAPI issue, I just couldn't get my head around Python's asynchronous operations and I would constantly stall the main thread and have to restart the server.
1
u/Full-Classroom195 Aug 20 '25
The babby dev got banned for using reddit as free SEO links to his site LOL
-9
u/cheesekun Aug 02 '25
It works very slowly - that I know for a fact.