FastAPI, Flask or Django - Which Should You Use?

  Рет қаралды 114,144

Tech With Tim

Tech With Tim

Күн бұрын

Пікірлер: 164
@mr_don_key
@mr_don_key 7 ай бұрын
Django is very fast (it might be the slowest of the three, but it's relative), you can easily serve 1000's of connections per minute (and even do async if you want), so for most websites, it's way fast enough (we're not fortune 500 sites).
@jaimel8219
@jaimel8219 6 ай бұрын
Django async support in 2024 is awful.
@mr_don_key
@mr_don_key 6 ай бұрын
@@jaimel8219 define "awful"?
@Your_mom_calls_me_luka
@Your_mom_calls_me_luka 6 ай бұрын
Exactly. People talking speed like they are the next facebook or whatnot but in reality most of them have 100 active users at best
@riyansh3396
@riyansh3396 6 ай бұрын
I started with Flask it made me understand the flow and basics and then I started Django that made me aware of some really cool reasons why Django is used in companies and its advantages and then I am doing internship so here I am working on fastapi which is pretty much similar to Express so now I know advantages of fastapi and why its called fast.
@y2ksw1
@y2ksw1 7 ай бұрын
I use Flask, because it allows me to make temporary decisions based on short term requirements more easily. The usage of Blueprints for example makes it very modular and easy to change. I tried Django before, but was overwhelmed by too much magic behavior.
@TheAremoh
@TheAremoh 7 ай бұрын
Honestly the behavior is magical. I'll hardly pick for an api project. For web apps, I can make do with the magic
@esrx7a
@esrx7a 7 ай бұрын
Now I clearly understand what to use first and why. Thanks Tim.
@azariahazane4101
@azariahazane4101 6 ай бұрын
which is first?
@mecrayavcin
@mecrayavcin 6 ай бұрын
@@azariahazane4101 Django
@lost8886
@lost8886 2 ай бұрын
Flask
@miguelhernandez3730
@miguelhernandez3730 Ай бұрын
nah i learned django and i prefer fastapi
@nocopyrightgameplaystockvi231
@nocopyrightgameplaystockvi231 7 ай бұрын
Django for smaller projects works fine, in any case you want more features later once it grows
@aashayamballi
@aashayamballi 7 ай бұрын
Totally 💯
@pedrod.7576
@pedrod.7576 7 ай бұрын
Django is a nightmare to setup for beginners.
@nocopyrightgameplaystockvi231
@nocopyrightgameplaystockvi231 7 ай бұрын
@@pedrod.7576 for beginners if they have never set up or wrote a project profesionally, which they will be doing going forward anyway. Django teaches that at first which is a good thing.
@robopaul9
@robopaul9 7 ай бұрын
Django is really easy to get started and actually major companies such as Google use it so that's actually completely false that it's only for small projects
@nocopyrightgameplaystockvi231
@nocopyrightgameplaystockvi231 7 ай бұрын
@@robopaul9 django is too good for small projects
@trueuno8559
@trueuno8559 5 ай бұрын
Django’s setup only takes 10minutes though if not less Create project Cd project Create app Connect app in settings Include your urls and a few little tweaks and than only can you start with the good staff with template, views and models Comes with SQLite aswell Perfect for beginners I think most beginners should start with Django just to know the structure of a real world web app/software Powerful I tell you I use Django for web apps and react native for mobile Most of my mobile apps are api based anyways so I just call/get my requests from my web apps server
@ArMor-dp7nb
@ArMor-dp7nb 3 ай бұрын
Bro are you using django full stack or as a backend only? Do you use it with react? Thank you in advance bro if you answer my dumb question🙏🏻
@WongForex
@WongForex 2 ай бұрын
​@@ArMor-dp7nbdjango can be use for backend only
@nandamvyshnavi5075
@nandamvyshnavi5075 6 ай бұрын
This comparison is wonderful , Thanks Tim !!
@justasydefix6251
@justasydefix6251 4 ай бұрын
We choose django not because it is django but because of its plugins. Django is the slowest among the three until you install the plugins with the most optimized algorithms on python on django then it beats them all. Take for example, Django-tree, django-filter, django-auth is the most complete auth out of the tree. Django rest framework is the most comprehensive REST framework that other frameworks from other languages try to copy from its features. Django is the most complicated out of the three but the most supported one by organization and companies. Bear with it.
@monkmodelandon2024-kh6ot
@monkmodelandon2024-kh6ot 7 ай бұрын
honestly, just bite the bullet and go with Django. Once you get the hang of django, it's the only framework you'll want to use.
@GuiltyNoticer
@GuiltyNoticer 2 ай бұрын
true
@nalaklak
@nalaklak Ай бұрын
True, plus for your api you can use django rest framework
@apexherbert
@apexherbert 4 күн бұрын
Currently learning fastapi. Looks nice
@MoonyongKim
@MoonyongKim 10 күн бұрын
Thanks for the comparison. I think I will go with FastAPI, hoping this will benefit the most for the long term goal, large scale application
@Dixter1520
@Dixter1520 5 ай бұрын
Awesome video. No nonsense, just dense information. Exactly what i was looking for.
@AaronGayah-dr8lu
@AaronGayah-dr8lu 6 ай бұрын
Had debated that choice for a long time. Appreciate this breakdown.
@thrasosthrasos7353
@thrasosthrasos7353 6 ай бұрын
I'm using Django without ORM and without templates and it is works quite well. Achieving more complex queries with ORM has to much performance penalties or is impossible, so I'm using it only for table User related things. Instead of templates I'm using Vue templates on the client side. Apache configuration was a little tricky, but after a few weeks of experimentation is started to work as expected. ASGI is possible with Django, but I've got impression it is not ready 100%. The main reason why I need ASGI is to run two query in parallel but AFAIK it is not possible with current Django.
@111sam1
@111sam1 29 күн бұрын
I’ve used django in the past and it is great although it requires a lot of boilerplate code. I then tried fast API, which I find so much more intuitive and easy to write. It’s also incredibly customisable.
@tokyo.4364
@tokyo.4364 7 ай бұрын
amazing video as always tim, thank you!
@UzairUllah_401
@UzairUllah_401 Ай бұрын
thanks Tim, it was a good explaination
@vipinpg
@vipinpg 3 ай бұрын
For external frontent like nextjs etc. Fast api is recomended.
@2dapoint424
@2dapoint424 7 ай бұрын
Hey Tim, what’s your view on Flask-async? How does that compare with fast-api?
@urdarkside1
@urdarkside1 7 ай бұрын
Hi Tim, What cloud vendor is most sought after between AWS and Azure from your experience?
@chaitanyabharatdokara
@chaitanyabharatdokara 8 күн бұрын
At 7:17 you said asynchronous programming but displayed text as synchronous programming.
@zrizzy6958
@zrizzy6958 6 ай бұрын
7:18 - the subtitle is synchronous insted of asynchronous programming
@WarmbierJon
@WarmbierJon 4 ай бұрын
You make complex topics so easy to understand. 📚 Thank you for being an incredible educator!
@Jaybearno
@Jaybearno 7 ай бұрын
Which would you recommend for the best ORM? In terms of config simplicity and compatibility? I see a lot of fast API based projects with shiny new ORM extensions, but they seem to all be built off SQL alchemy. Best to just start with flask and vanilla sql alchemy?
@thomasdb6126
@thomasdb6126 4 ай бұрын
Recently at work, we conducted a performance comparison between Django and FastAPI, and interestingly, Django outperformed FastAPI in terms of speed.
@amogoose2971
@amogoose2971 9 күн бұрын
did you use async for fastapi?
@mikesturyan9
@mikesturyan9 4 ай бұрын
I build all my apis and websites with fastapi. I have been paying attention to the robyn project as it has potential for a lot of performance since it is built over rust.
@natnaelabayneh7664
@natnaelabayneh7664 Ай бұрын
Do u recommend me to learn fast api if i just want a quick way to build apis for flutter?
@mikesturyan9
@mikesturyan9 Ай бұрын
@natnaelabayneh7664 depends on your needs, but it is worth looking into.
@ishakapoor2692
@ishakapoor2692 6 ай бұрын
You did not discuss django rest framework
@amaharra8569
@amaharra8569 6 ай бұрын
Tim you're top man mate!
@ayushshende4290
@ayushshende4290 7 ай бұрын
a video demonstrating the async side of fast api would be very helpful.
@dscyberdefense
@dscyberdefense 7 ай бұрын
you could also simply google 'async fast api'
@buildfromzero
@buildfromzero 7 ай бұрын
Hi Tim ❤
@buildfromzero
@buildfromzero 7 ай бұрын
One of your old subscriber 🎉
@thenaughtyanil
@thenaughtyanil 8 сағат бұрын
Fast API is very simple, Coming from java background I feel this easiness. have Build IDP application using Unstructured IO and integrated with LLM model.
@pixelartist1532
@pixelartist1532 7 ай бұрын
Quart > FastApi. And if hight performance is important then you shouldn't be using python anyways.
@thenaughtyanil
@thenaughtyanil 8 сағат бұрын
Depends all AI use case needs Python.
@prime_soldier27
@prime_soldier27 7 ай бұрын
Hi, Tim. Which one would you recommend for an ML engineer?
@codewithlenny
@codewithlenny 7 ай бұрын
Typically for an ML engineer, you'd deploy a model via an API. For that, sticking to the more API focused framework (FastAPI) would be ideal.
@prime_soldier27
@prime_soldier27 7 ай бұрын
@@codewithlenny Thank You.
@jjeverson2269
@jjeverson2269 6 ай бұрын
DjangoRestFramework is awesome but I love the flexibility of FastAPI
@mawkuri5496
@mawkuri5496 4 ай бұрын
what is the best backend if you're building a dynamic website using flet?
@misterjs023
@misterjs023 6 ай бұрын
legal, mano... obrigado, digamos que eu queira construir uma empresa de táxi, tipo uber por exemplo, estou usando react nativo para meu celular, preciso de um dashboard, preciso usar comunicação em tempo real no backend do claro, para conectar meu painel e o aplicativo em uma comunicação em tempo real, qual devo usar?
@Darkvader9427
@Darkvader9427 7 ай бұрын
please create a large web application using farm stack
@ajayg2752
@ajayg2752 7 ай бұрын
What is farm stack
@moneeshkumar1838
@moneeshkumar1838 7 ай бұрын
@@ajayg2752FARM -> FastAPI, React, MongoDB
@CreatedByDalius
@CreatedByDalius 7 ай бұрын
@@ajayg2752 fast api, react, mongodb is Farm stack
@FranzAllanSee
@FranzAllanSee 7 ай бұрын
​@@ajayg2752FastApi, React and Mongo. It's not a thing 😂
@anuroxftw7080
@anuroxftw7080 7 ай бұрын
​@@ajayg2752 fastapi, react, mongodb
@zealousprogrammer4539
@zealousprogrammer4539 7 ай бұрын
@Tech wih Tim your carrercourse website have a bug user cannot log in please fix it thank you!
@giftcp82
@giftcp82 5 ай бұрын
@Tech with Tim please give us a breakdown of Reflex
@mintz347
@mintz347 7 ай бұрын
Do more web development with Django please?😢
@ar2050
@ar2050 6 ай бұрын
I do on my channel
@erictheawesomest
@erictheawesomest 6 ай бұрын
What about laravel? I've only just started working with it but livewre looks quite good
@MarcusHCrawford
@MarcusHCrawford 2 ай бұрын
But he’s talking about Python here. Not PHP.
@TheAremoh
@TheAremoh 7 ай бұрын
I like the control I have over micro frameworks
@MrAdBounty
@MrAdBounty 7 ай бұрын
I use flask in production at work. Performance is relative, you usually don't need it. Not saying don't take the fastest one. I did choose my Go framework on benchmarks But don't stop yourself to use flask, that plenty enough to do a lot of stuff.
@oblivion7300
@oblivion7300 7 ай бұрын
hey Tim do a fast api react stack blocgging system that uses crud
@MaziarHeidari-i4e
@MaziarHeidari-i4e 5 ай бұрын
So I think tto stay alive on the market as a developer, it's best to know at least two these three options or maybe all three of them . Any ideas ?!😮
@putnam120
@putnam120 6 ай бұрын
Imo prototyping in fastapi is the same as flask. You don't need to use all the typing and async features
@mrrolandlawrence
@mrrolandlawrence 2 ай бұрын
django is amazing. 5 minutes to setup. 3 days to debug. So far liking fastAPI and HTMX.
@romainchan7165
@romainchan7165 6 ай бұрын
What about streaming video or music? Is it alright to use django or flask or fast?
@evan_kirk
@evan_kirk 4 ай бұрын
You shouldn't use Python
@nordicnomad5473
@nordicnomad5473 4 ай бұрын
Python is wrong choice for that, try with Rust or Golang
@animal_ships
@animal_ships 7 ай бұрын
Thanks Tim for your help but I will love for you to create a full basic structure documentation video about flask,fastapi and Django from the starting point to the end and even how to put it online and make updates when necessary please please do this for us 🙏
@TechWithTim
@TechWithTim 7 ай бұрын
I have many videos on all of themb
@animal_ships
@animal_ships 7 ай бұрын
@@TechWithTim ok but please do you have videos on how to update your website
@deekfeels
@deekfeels 7 ай бұрын
@@TechWithTim Hello sir Tim, can you please do a full comprehensive video on the general process of building a professional website, and how to organize your files and folders to s to come up with a professional website. thanks, will be looking forward to that.
@davidkarl3237
@davidkarl3237 6 ай бұрын
What about Reflex Framework ?
@VincentpaulOMOROGBE-mc1og
@VincentpaulOMOROGBE-mc1og 4 ай бұрын
Node js is the god of backend
@wasteoftime8839
@wasteoftime8839 6 ай бұрын
You did not refer django-ninja , that combines fastapi with django.
@NSILY
@NSILY 7 ай бұрын
do you do requests? if you do, can you make a new django series. just do the basic as always and if possible compare some of your codes/lines on your last django series to the modern one.
@robel_asefa
@robel_asefa 7 ай бұрын
Hey Tim, love your channel, but hoping to see more videos like the ones that originally drew me here. The recent sponsor-focused content has been a bit off-putting.
@FranzAllanSee
@FranzAllanSee 7 ай бұрын
I find not much reason using flask over fastapi. And if i need performance, I use robyn
@cristianscript5649
@cristianscript5649 5 ай бұрын
microservices with FastApi with docker kubernetes and fancy cloud solutions event sourcing boom
@ninokojadinovic
@ninokojadinovic 6 ай бұрын
Are you in Bali?
@abhinav788
@abhinav788 5 ай бұрын
Can you talk about Streamlit??
@coderprakash
@coderprakash 6 ай бұрын
Please make a video on nodejs vs springboot vs django?
@chobblegobbler6671
@chobblegobbler6671 7 ай бұрын
Tell a good aggrid like framework fir any Python webapp
@personofsomething6205
@personofsomething6205 4 ай бұрын
if you want rest api, def go with fastapi. If you want to serve HTML templates, go with flask or django. Easy
@user-hr8iz9lb3g
@user-hr8iz9lb3g 5 ай бұрын
What about Django-Ninja ?
@sitrakaforler8696
@sitrakaforler8696 7 ай бұрын
Flask for simple prototyping, Django for professional features, and FastAPI for high performance APIs Django is (i think) so fcking cool and its ORM is awesome ! Fast Api is cool tho
@Pachadirri
@Pachadirri 6 ай бұрын
I use Falcon
@ehikowesho
@ehikowesho 5 ай бұрын
Thank you so much
@bernardwodoame9850
@bernardwodoame9850 6 ай бұрын
Django is what I use daily.
@GolapSk-xw1es
@GolapSk-xw1es 6 ай бұрын
How to track crypto whales using the Etherscan API
@usamashami11
@usamashami11 7 ай бұрын
I don't have much time I feel sad that I couldn't watch all videos 😢
@versusbassz
@versusbassz 7 ай бұрын
Lightstar
@TheAremoh
@TheAremoh 7 ай бұрын
Litestar and robyn are great frameworks too.
@christislight
@christislight 7 ай бұрын
I love Flask
@regular3dguy830
@regular3dguy830 2 ай бұрын
Flask has async since v2.0
@williansuarez3988
@williansuarez3988 7 ай бұрын
Excelente resúmen
@The_Quaalude
@The_Quaalude 7 ай бұрын
Bro just casually flexing with the background 😭
@Leao_da_Montanha
@Leao_da_Montanha 6 ай бұрын
the real deal is litestar
@TheRealisticNihilist
@TheRealisticNihilist 7 ай бұрын
No no no no no no no. Emacs only!
@MrSunTrope
@MrSunTrope 7 ай бұрын
I love django
@jamikemichelohia2615
@jamikemichelohia2615 7 ай бұрын
I use all 3
@shreyaschillal
@shreyaschillal 7 ай бұрын
Exact video I got
@jeffkirchoff14
@jeffkirchoff14 6 ай бұрын
Hono is new
@damjankostadinovic5048
@damjankostadinovic5048 15 күн бұрын
Django is goat
@sgsfak
@sgsfak 6 ай бұрын
Litestar
@pythonfamily
@pythonfamily 6 ай бұрын
FASTAPI
@D_M_Tech
@D_M_Tech 7 ай бұрын
Hi sir h r u .? Long time no see u?sir plz python with mangodb in real a ecommernce website full for a to z all things plz describe
@likithb3726
@likithb3726 6 ай бұрын
streamlit crying in corner
@pelumionafuye2374
@pelumionafuye2374 5 ай бұрын
😂😂
@jotha9465
@jotha9465 3 ай бұрын
That's not true. FastAPI is easier to learn than flask. And their performance is even better.
@evan_kirk
@evan_kirk 4 ай бұрын
CherryPy 💀
@R_Priest
@R_Priest 3 ай бұрын
What a bunch of cliches. He basically told us that Flask is for hobby projects only.
@apexashwin
@apexashwin 6 ай бұрын
Golang
@prajnaparamitahrdaya
@prajnaparamitahrdaya 6 ай бұрын
Sanic
@t0khyo
@t0khyo 6 ай бұрын
Just use Java Spring🍝
@flogginga_dead_horse4022
@flogginga_dead_horse4022 7 ай бұрын
none of the above lol
@Ohiostategenerationx
@Ohiostategenerationx 7 ай бұрын
You guy's need to tell each other when you are making a video. Both you guy's are always walking around in the background.
@TechWithTim
@TechWithTim 7 ай бұрын
Just enjoy the view
@denverjamesduran2750
@denverjamesduran2750 7 ай бұрын
True what's the matter with people walking xD
@Ohiostategenerationx
@Ohiostategenerationx 7 ай бұрын
@@denverjamesduran2750 I was messing with him calm down.
@Gaamaa-oz5ef2lf3n
@Gaamaa-oz5ef2lf3n 3 ай бұрын
Boss ! You don't have any content... Repeating same old points again and again and wasting our precious time.
@andrewhannebrink56
@andrewhannebrink56 6 ай бұрын
Disliked bc jetbrains
@destroyer9154
@destroyer9154 7 ай бұрын
I am learning django 🎉 it is best for ai development also
@oxyht
@oxyht 7 ай бұрын
Why?
@destroyer9154
@destroyer9154 7 ай бұрын
@@oxyht in a real time ai application we use tons of data to manage those mount of datas We need powerful framework like django
@AdolfRizzler41
@AdolfRizzler41 6 ай бұрын
​@@destroyer9154you can integrate ai with js also😂 no need to waste time on python
Why You NEED To Learn FastAPI | Hands On Project
21:15
Travis Media
Рет қаралды 171 М.
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН
Learn Django in 20 Minutes!!
21:25
Tech With Tim
Рет қаралды 441 М.
FastAPI vs Django 2024: Which Framework Should You Choose?
3:42
Tisfoulla Academy
Рет қаралды 2,5 М.
I built 10 web apps... with 10 different languages
14:23
Fireship
Рет қаралды 1,7 МЛН
5 Good Python Habits
17:35
Indently
Рет қаралды 668 М.
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 103 М.
Python Data Classes Are AMAZING! Here's Why
16:11
Tech With Tim
Рет қаралды 87 М.
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН