Flask ecosystem is bigger, is more used in production, has an organization behind it (not only one guy), can work with async (although async is irrelevant for most projects) and if you really need speed, you use something like Go, not a Python framework.
Flask has async support with async-extra , and if you serve it with asgi (like hypercorn instead of gunicorn) it also shows full asynchronous behavior. can you give performance comparison with this configuration,
Missed opportunity to talk about Quart: the native async version of Flask. A lot of Flask's most popular extensions works with Quart too! Migrating from Flask to Quart requires almost no code change, only need to add async await keywords.
I have worked with my current client on a project for over 3 years, and at the time Flask felt more proven and mature, and a safer choice for a big enterprise. That's why we chose Flask back then. However, today I think we would go with FastAPI rather, much more modern and seem to have nice momentum ongoing. Might have to look into it, since we are about to create a new microservice.
In reality all new projects are using FastAPI... instead even Flask is their default. FastAPI is also quite popular with new AI/ML/LLM application developers
TLDW : Fastapi beat flask on every benchmark. There I save you 7 minutes.
Every performance benchmark, not every category 😉
Flask ecosystem is bigger, is more used in production, has an organization behind it (not only one guy), can work with async (although async is irrelevant for most projects) and if you really need speed, you use something like Go, not a Python framework.
Flask has async support with async-extra , and if you serve it with asgi (like hypercorn instead of gunicorn) it also shows full asynchronous behavior.
can you give performance comparison with this configuration,
Interesting I will take a look!
Missed opportunity to talk about Quart: the native async version of Flask. A lot of Flask's most popular extensions works with Quart too!
Migrating from Flask to Quart requires almost no code change, only need to add async await keywords.
Yeah, but technically Quart is different so I purposely left it out. Great addition to a comment here though.
Which of the two frameworks do you prefer?
FastAPI
Definitely Fastapi
Now I can understand when to use flask and when to use fastapi. Thank you sir for this in-depth explanation.
Glad it was helpful! Woot woot 🙂
FastApi with Swagger ui has nice page for documentation of your api also. Do not know if flask has it but its a nice feature that was not mentioned
Flask does not come with this automatically, but it is lighter weight.
Thank you for giving this kind of information, helps people to decide which way to take forward.
You bet, cheers friend!
I have worked with my current client on a project for over 3 years, and at the time Flask felt more proven and mature, and a safer choice for a big enterprise. That's why we chose Flask back then. However, today I think we would go with FastAPI rather, much more modern and seem to have nice momentum ongoing. Might have to look into it, since we are about to create a new microservice.
I think it is really great - very similar attributes to Flask.
Your videos are great
I am glad you enjoy them 🙂
I love FastApi ❤
Sweet!
Sir, please give a comparison on FastAPI and Django-Ninja
Noted! It’s added to my backlog
johnny sins if he was a developer XD btw good content
I had to look up who that was ... omg ... lol
In reality all new projects are using FastAPI... instead even Flask is their default.
FastAPI is also quite popular with new AI/ML/LLM application developers
FastAPI is OP
You know mine Eric 🎉🎉🎉
Woot woot woot!
Waiting video about architectures
Like design system architectures?
And something else...i guess most of the viewer of your channel ( including myself) are kind of biased to fastapi...😊
Yes .. yes they are 🙂
FastAPI Ftw
I love it 👑
I prefer using FastAPI.
Great choice 🙂
FastAPI started in 2018, why your graph showing it starting from 2010
FastAPI was created in 2018. You can see the graph starts earlier because of Flask, but FastAPI sits at 0 until 2018.