fastapi-practices/fastapi-best-architecture

Enterprise-level backend architecture solution with fastapi、sqlalchemy,、celery、pydantic、grafana、docker...

Python

2,590

904 commits

updated Oct 18, 2026

See the code

README

The logo includes the abstract combination of the three letters FBA, forming a lightning bolt that seems to spread out from the ground

FastAPI Best Architecture

Enterprise-level backend architecture solution

English | 简体中文

GitHub Python MySQL PostgreSQL SQLAlchemy Pydantic v2 Ruff uv Docker Discord Discord Ask DeepWiki

Three-tier architecture

The MVC architecture is common in Python Web as a general design pattern, but the three-tier architecture is more fascinating

However, please note that we do not have a traditional multi-app (microservices) directory structure (django, springBoot...). ), but a self-righteous directory structure that you can give it any twist if you don't like this model!

workflowjavafastapi_best_architecture
viewcontrollerapi
data transmitdtoschema
business logicservice + implservice
data accessdao / mappercrud
modelmodel / entitymodel

Help

For more details, please check the official documentation

Sponsors

Contributors

Special thanks

Interactivity

Discord

License

This project is licensed by the terms of the MIT license

Stargazers over time

celery
fastapi
fastapi-template
fba
grafana
sqlalchemy

fastapi-practices/fastapi-best-architecture

Enterprise-level backend architecture solution with fastapi、sqlalchemy,、celery、pydantic、grafana、docker...

Python

2,590

904 commits

updated Oct 18, 2026

See the code

README

The logo includes the abstract combination of the three letters FBA, forming a lightning bolt that seems to spread out from the ground

FastAPI Best Architecture

Enterprise-level backend architecture solution

English | 简体中文

GitHub Python MySQL PostgreSQL SQLAlchemy Pydantic v2 Ruff uv Docker Discord Discord Ask DeepWiki

Three-tier architecture

The MVC architecture is common in Python Web as a general design pattern, but the three-tier architecture is more fascinating

However, please note that we do not have a traditional multi-app (microservices) directory structure (django, springBoot...). ), but a self-righteous directory structure that you can give it any twist if you don't like this model!

workflowjavafastapi_best_architecture
viewcontrollerapi
data transmitdtoschema
business logicservice + implservice
data accessdao / mappercrud
modelmodel / entitymodel

Help

For more details, please check the official documentation

Sponsors

Contributors

Special thanks

Interactivity

Discord

License

This project is licensed by the terms of the MIT license

Stargazers over time

celery
fastapi
fastapi-template
fba
grafana
sqlalchemy

Significant stargazers

huihui

179 followers · starred Mar 2025

navy

29 followers · starred Feb 2025

Mitch Fultz

63 followers · starred Dec 2025

Adi Susilayasa

33 followers · starred Dec 2025