Used fastapi for 8 months, it's really fast and works with almost any existing python package, but the django ORM and admin panel is a significant advantage that DRF has over fastapi. I believe that using one over the other boils down to whether you need the django ORM & admin and the django packages provided by the community, or you want to have control over every part of your API and a few ms in performance improvement is worth the switch and someone else is building the admin panel.
@coderush244 ай бұрын
Need a full fledged FastAPI project with authentication and ReactJS as frontend
@codingwithroby4 ай бұрын
I have that on my channel split between two videos.
@SageManOfficial4 ай бұрын
He has a next.js video which uses fastapi as the backend and includes jwt, sqlalchemy, etc.
@farismecinovic14993 ай бұрын
Can we get some production grade fast api project?
@my_name_is_ahad4 ай бұрын
The problem is Django ORM is better, That's why Django is still better. You can optimize DRF for latency and speed.
@codingwithroby4 ай бұрын
Ohhhh, idk about that one. SQLModel is pretty freaking awesome nowadays.
@AsifSaifuddinAuvipy2 ай бұрын
@@codingwithrobynot for every project
@eymenongel6770Ай бұрын
Can fastapi be used for api endpoints and django in operations such as orm and database (everyone is good at it) and Roby’s fastapi course on udemy is amazing⭐️
@ruksharalam173Ай бұрын
Can you please make a similar comparison video between Async Django Ninja and FastAPI?
@codingwithrobyАй бұрын
It is on the backlist of content for me to make 🙂
@AsifSaifuddinAuvipy2 ай бұрын
You should have compare Async Django vs Async FastAPI. DRF is not async yet
@codingwithroby2 ай бұрын
I'll look into it 😎
@onclick-xt3mu3 ай бұрын
I'm using django as fullstack and that's why I have to use Django REST for the mobile app it's not bad but I wish it would improve its performance
@codingwithroby3 ай бұрын
For sure, if you are using DRF on a Django project then its great. If you are not and wanting to create a project from scratch I'd choose FastAPI every single time.
@codernerd70764 ай бұрын
Looking for a course with FastAPI and Next.js with all auth features 😢
@codingwithroby4 ай бұрын
I have a 90 min tutorial here that shows you that.
@codernerd70764 ай бұрын
@@codingwithroby oh wow gonna check that out thanks!
@SageManOfficial4 ай бұрын
I was going to use django rfw or even django ninja but i decided to use fastapi in the end. Django is good but i already made my front end and it seemed complicated to get it working solely as a backend.
@codingwithroby4 ай бұрын
As stand alone frameworks, FastAPI is better. If you want to use Django, then DRF is not a bad attachment.
@aibasics72063 ай бұрын
if we have large scale features ..I means we have various features to take care in a webapp ..In that case also can we consider FastApi?
@codingwithroby3 ай бұрын
For sure!
@codingwithroby4 ай бұрын
Any other comparisons you want to see?
@_Software_developer_4 ай бұрын
Python vs java as backend
@moinuddin-x6u4 ай бұрын
sir plz launch proper fast API series with complex project
@suriya_gm4 ай бұрын
FastAPI vs Django-ninja
@kenmachine18 күн бұрын
You are comparing an apple & a banana and asking which one is mostly an apple. ye obviously, it's the apple. django by default is sync & fastapi is async which means fastapi should be faster & by huge margins have a lower latency
@helloquicoАй бұрын
wow, that's one FULL head of hair "you" had there in that clip :o
@codingwithrobyАй бұрын
Did you just make a bald joke?
@hasibulalamprionto20102 ай бұрын
How about fastapi vs django ninja!!
@codingwithroby2 ай бұрын
haha so many variations. I'll take a look and do a comparison!
@dev-akeel3 ай бұрын
I hope by Pydantic you mean `SQLMODEL` in the modern world.
@codingwithroby3 ай бұрын
Pydantic is a data validation library. It has nothing to do with SQLModel (an ORM) outside the fact that SQLModel uses it for db data validation behind scenes
@dev-akeel3 ай бұрын
@@codingwithroby And I am 89.75% sure that you don't use Pydantic for anything else other than DB validation.
@codingwithroby3 ай бұрын
I am 100% sure your 89.75% is wrong 😉 - at a minimum there should be three areas of data validation. 1. At the client level (not pydantic). 2A. At the transfer/endpoint level. This is the DTO coming into the backend from a client. Validation of all pieces of info, making sure data is valid before transforming into a table entity or performing business logic. 2B. Path and query Params are valid. For example making sure an ID is always positive, or a string parameter has at least 5 characters, etc. (both points of 2 is why FastAPI comes with pydantic as well). You can also validate headers, etc. 3. Database validation which is what you suggested.
@BeyondTheFirstPage4 ай бұрын
compare with django-ninja
@codingwithroby4 ай бұрын
Not a bad idea! I'll add it to the list.
@joshthe10xengineer4 ай бұрын
So... is django dying? What would be a good use case for it?
@codingwithroby4 ай бұрын
Django is not dying, but FastAPI is a better tool than DRF. Django is a full framework that allows you to do everything in a single framework. FastAPI allows you to get going quicker but you may have to do a bit more.