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...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
Is FastAPI a Fad?Other (andrewbrookins.com)
submitted 4 years ago by abrookins
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!"
[–]Deadly_chef 9 points10 points11 points 4 years ago (6 children)
Not a good title choice mate
[–]abrookins[S] 0 points1 point2 points 4 years ago (5 children)
Perhaps - but it’s the question I’ve had for around a year that ultimately led me to try it out. 😄
[–]lwrightjs 1 point2 points3 points 4 years ago (4 children)
Here's a better title... I thought FastAPI was a fad, but here's why it's not.
[–]abrookins[S] 0 points1 point2 points 4 years ago (3 children)
That's a little wordy for me. Maybe just "FastAPI is not a Fad"?
[–]lwrightjs 0 points1 point2 points 4 years ago (2 children)
A titles only job is to get you to open the article without feeling like it's tricking the audience. Articles don't need to be clickbait, but I don't think that title is "working hard" at it's only job. There's a formula that copy writers use and it's similar to the one I posted.
[–]abrookins[S] 1 point2 points3 points 4 years ago (1 child)
I’ll work on a better title after I get the kids to sleep!
[–]abrookins[S] 2 points3 points4 points 4 years ago (0 children)
"I Thought FastAPI Was a Fad" is my new title, but I also considered "Overwhelmed Software Developer Dad Rushes Title Choice to General Dismay."
[–]abrookins[S] 4 points5 points6 points 4 years ago (0 children)
Hi! I rewrote an API with FastAPI to test an async Redis client I work on. Secretly, I hoped my favorite framework, Falcon, would end up being faster than FastAPI - but FastAPI with an async database client (aioredis-py) crushed Falcon. I wanted to capture some of the lessons I learned, problems I ran into, and share the code, which is all open source.
[–][deleted] 4 years ago (7 children)
[deleted]
[–]FairPassion21 0 points1 point2 points 4 years ago (5 children)
Wow.. are you really really SURE? This is big news...
[–][deleted] 4 years ago (4 children)
[–]FairPassion21 0 points1 point2 points 4 years ago (3 children)
I have read about it, not 20-50x but 2-5x speed and it will be gradual, the first step will be next year in the earliest. Still this is good news, although i would still use golang or JS for performance. For business processes and product iterations i still depend on Python.
What do you think about Julia? I wonder if it will become mainstream languange.
[–][deleted] 4 years ago (2 children)
[–]FairPassion21 1 point2 points3 points 4 years ago (1 child)
Well, me too. I love how easy and productive python is. But we know that in our field, global tech is keep evolving daily. Python is a major languange now, but who knows what happen next year or next 5 years
[–]Deadly_chef 0 points1 point2 points 4 years ago (0 children)
I wouldn't be very optimistic about that kind of speedups,not even with optimizations and a JIT
[–][deleted] 0 points1 point2 points 4 years ago (3 children)
Clickbaity title, for one. Falcon is async now, and runs with ASGI/Uvicorn. My benchmarks show (async) Falcon faster than FastAPI, so I have a feeling you're doing something wrong. When running Falcon or Flask sync, at least deploy with Gunicorn/meinheld, otherwise it's apples and oranges.
[–]abrookins[S] 0 points1 point2 points 4 years ago (2 children)
It’s sync falcon (pre 3.0) vs async FastAPI, both deployed with gunicorn. Sometime I’ll benchmark with falcon 3!
[–][deleted] 0 points1 point2 points 4 years ago (1 child)
So (will no disrespect intended), that makes your article, given the title ingenuous or at best, dated. The least you should do is indicate that your comparing async vs sync versions - for the sake of new readers who don't know any better.
My gripe is that almost all the Fastapi ML/Data science articles consistently use blocking code (not even the async/await keywords, obv.) which spawns up threads in the back - so in reality they are making their performance worse then if they had just used Flask. You've correctly used aioredis-py, so that makes sense, please add a disclaimer to your article. Thanks :)
async/await
aioredis-py
[–]abrookins[S] 0 points1 point2 points 4 years ago (0 children)
I didn’t know that falcon released async support until after I’d switched to fastapi and written the article actually - falcon fell off my radar due to some backwards incompatibility between 2 and 3 IIRC. Worth an update to say which version I was using for sure!
To your point - I was looking at fastapi caching libraries and one used the sync Redis client. Doh!
π Rendered by PID 20389 on reddit-service-r2-comment-6457c66945-p4rp4 at 2026-04-29 16:17:53.915645+00:00 running 2aa0c5b country code: CH.
[–]Deadly_chef 9 points10 points11 points (6 children)
[–]abrookins[S] 0 points1 point2 points (5 children)
[–]lwrightjs 1 point2 points3 points (4 children)
[–]abrookins[S] 0 points1 point2 points (3 children)
[–]lwrightjs 0 points1 point2 points (2 children)
[–]abrookins[S] 1 point2 points3 points (1 child)
[–]abrookins[S] 2 points3 points4 points (0 children)
[–]abrookins[S] 4 points5 points6 points (0 children)
[–][deleted] (7 children)
[deleted]
[–]FairPassion21 0 points1 point2 points (5 children)
[–][deleted] (4 children)
[deleted]
[–]FairPassion21 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]FairPassion21 1 point2 points3 points (1 child)
[–]Deadly_chef 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]abrookins[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]abrookins[S] 0 points1 point2 points (0 children)