https://www.section.io/engineering-education/choosing-between-django-flask-and-fastapi/
Pros, cons and use cases
This is called Django Rest Framework (DRF).
The Rest framework (Representational state transfer can be defined as a software architectural style that defines a set of constraints to be used when creating web services) in Django.
Django emphasizes security by providing defense against joint SQL injection and cross-site request forgery attacks.
Django Models can have no mixins, they just have simple inheritance.
Django uses ORM, which was created before SQLAlchemy, making Django ORM inferior to SQLAlchemy because it is less flexible.
It’s not advisable to use it for high-load enterprise software.
FastAPI Use cases
Fast API, works perfectly if your concern is speed. Netflix uses it for its internal crisis management.
It also scales perfectly in deploying production-ready machine learning models because ML models work best in production when they are wrapped around a REST API and deployed in a microservice.