FastAPI vs Flask: Which is BEST for you?
HTML-код
- Опубликовано: 7 фев 2025
- FastAPI and Flask battle it out to see which Python API framework is best!
Want free repositories? www.codingwith...
Want to learn FastAPI? Go here: www.udemy.com/...
Join a community of Python Developers: / @codingwithroby
Checkout all courses:
www.codingwith...
Checkout these videos:
🎥 React + FastAPI: • How to build a React +...
🎥 AWS Lambda + FastAPI: • Deploy FastAPI on AWS ...
🎥 MongoDB + FastAPI: • Unlocking the Power of...
🎥 MySQL + FastAPI: • How to build a FastAPI...
🎥 PostgreSQL + FastAPI: • How to build a FastAPI...
👨💻 Hi, I am Eric!👨💻
Hey! I’m a seasoned python developer and cloud enthusiast. I love sharing my knowledge and helping others to discover the exciting world of programming and cloud technologies.
🙏 Support The Channel 🙏
If you found this tutorial helpful, please give it a thumbs up 👍, comment, and share it with your network 🌍
#fastapi #flask #python
TLDW : Fastapi beat flask on every benchmark. There I save you 7 minutes.
Every performance benchmark, not every category 😉
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
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!
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 🙂
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.
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.
I love your RUclips channel. I am also a Python developer. Thanks for the video boss🥰
I am so glad you liked it man!
Could you please upload new project video with FastAPI and Nextjs on Udemy?
can i see the code of these benchmarks ?
I no longer have the code, but it was a straight forward Create & Read test for users by using locust.io/
Your videos are great
I am glad you enjoy them 🙂
johnny sins if he was a developer XD btw good content
I had to look up who that was ... omg ... lol
Sir, please give a comparison on FastAPI and Django-Ninja
Noted! It’s added to my backlog
I prefer using FastAPI.
Great choice 🙂
I love FastApi ❤
Sweet!
You know mine Eric 🎉🎉🎉
Woot woot woot!
What you're saying about fastapi being more difficult because of data validation and dependency injection makes no sense. Use of these are optional and so you need zero knowledge of them to get endpoints working.
Fair enough - I was speaking from the point of FastAPI comes with more things. I could have reworded that differently.
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.
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 🙂
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.
FastAPI Ftw
I love it 👑
none. go.
Nah, FastAPI, Flask and Django are awesome.
@@codingwithroby awesomely slow, yet lacking language features.