FastAPI vs. Django vs. Flask

preview_player
Показать описание

📣 Other Social:
Рекомендации по теме
Комментарии
Автор

"I saw a job post the other day. It required 4+ years of experience in FastAPI. I couldn't apply as I only have 1.5+ years of experience since I created that thing. "
- Sebastián Ramírez 😁

raazgoodboy
Автор

What does the GIL has to do with Async Await? Async Await run on an event loop. This always happens on a single CPU. Async Await are asyncronos operations for tasks with low computational load and the majority of the task's time is taken by simply waiting for a response. For example like a HTTP call. You make a call, and then you just sit and wait for a reply. And if it takes a long time, everything is stuck because your code is executing one line at a time. With async await you can say "While I wait for the HTTP call to give me a response, other operations can proceed running" and this is why async calls don't block the thread. This has nothing to do with working on multiple CPUs.

TheWolverine
Автор

This video is exactly what I was looking for!
Thank you for sharing.
I will definitely try FastAPI for new projects.

sthefanocarvalho
Автор

GIL does not matter, since node/express are single threaded either way, and you seem to compare them somewhat. One would not use a python / js backend framework for CPU-bounded work that one wants to parallelize, you would use Scala, Java, C# or even C++.

mindasb
Автор

Hopefully Django will pick up some of the good stuff from this because I'm still more comfortable making complicated tasks with it.

lowkeygaming
Автор

Because of your flask series im trying to create mafia movie-tvshows review site THANK YOU !!!

ΓιώργοςΛειβαδιάς
Автор

Nice interesting that you didn't jump into the difference between those 3 directly in speed and talk about async side.

steelwolf
Автор

Asynchronous is the future, at least for the most part. The event loop is far easier to understand and manage than multi-threading. Indeed there are specific tasks best suited for multiple threading but still in most cases the async/await is more than enough and some alternatives like service workers or isolates in dart can compensate.

TheMrk
Автор

Uhmm how is async even related to concurrency in anyway as async happens on the same thread ( i am coming from a nodejs world so maybe its different in python).

rishabhanand
Автор

So many frameworks built on top of each of these many languages that you could not decide which to use I might just go with no framework at all so I could have a peaceful life.

vncntjms
Автор

As of this writing Flask 2.0 provides support for async/await.

nsambataufeeq
Автор

Sorry if this is too meta, but do you have a course or resource on building a course site? I would love to build a course site for myself in Django.

yoyomama
Автор

Great video! I like Flask, but I think FastAPI very interesting...

IgorRibeiroBraga
Автор

Fastapi
Is the best python API solution

tubeathrun
Автор

The only time I ever set up a web API in Python is when I have an ML model that needs endpoints.

Rosenzweigjcb
Автор

thanks brother, it was a very good video

PouyaAtaei
Автор

If you wanna learn one first I would recommend start with flask after one day decide you want to continue or move to Django
Don’t start with fastAPI

If you learned flask pretty much fastAPI is the same and learning it is easy

ko-Daegu
Автор

Any new gui frameworks for python you recommend checking out?

jaymartinez
Автор

Teacher thanksnfor this. Can you make some djangorestframework advice?

aljon
Автор

Why didn't you use C# as your web backend for your website?

divyaanktiwari