# fastapi | Sebastián Ramírez | Knowledge Base | Instagit

GitHub Stars: 0

Repository: https://github.com/tiangolo/fastapi

---

## Articles

### [Background Tasks FastAPI: Implementation Nuances and Best Practices](/tiangolo/fastapi/fastapi-background-tasks-nuances)

Master FastAPI background tasks. Understand implementation nuances and best practices for efficient in-process task execution, avoiding external workers for simpler async operations.

- Tags: best-practices
- Published: 2026-02-20

### [How to Limit Uvicorn to a Single Worker Process When Running FastAPI](/tiangolo/fastapi/uvicorn-run-one-instance)

Start FastAPI with Uvicorn using a single worker process. Learn how to limit Uvicorn to one worker instance via CLI or programmatically. Avoid multiple processes.

- Tags: how-to-guide
- Published: 2026-02-19

### [FastAPI Testing: A Complete Guide to Unit Testing with TestClient](/tiangolo/fastapi/fastapi-testing-guide)

Master FastAPI testing with our complete guide. Learn unit testing best practices and leverage TestClient to build robust FastAPI applications efficiently.

- Tags: best-practices
- Published: 2026-02-18

### [SQLModel vs SQLAlchemy: Schema Definition and Relationship Handling in FastAPI](/tiangolo/fastapi/sqlmodel-vs-sqlalchemy-schema-relationship-differences)

Compare SQLModel vs SQLAlchemy for FastAPI database modeling. Discover key differences in schema definition and relationship handling, simplifying your Python ORM workflow.

- Tags: deep-dive
- Published: 2026-02-18

### [Troubleshooting FastAPI Docker Deployments for Production Stability](/tiangolo/fastapi/troubleshoot-fastapi-docker-deployment-issues)

Solve common FastAPI Docker deployment issues for production stability. Learn to fix caching build problems, signal handling, proxy headers, Uvicorn workers, and lifespan events.

- Tags: how-to-guide
- Published: 2026-02-16

### [How to Create Custom FastAPI Middleware Classes for Enhanced Request Handling](/tiangolo/fastapi/how-to-fastapi-middleware-classes-effectively)

Learn to create custom FastAPI middleware classes for enhanced request handling. Explore inheriting from Starlette's BaseHTTPMiddleware or using ASGI callables with app.add_middleware or the @app.middleware decorator.

- Tags: how-to-guide
- Published: 2026-02-16

### [FastAPI Project Structure Best Practices: A Scalable Directory Layout Guide](/tiangolo/fastapi/fastapi-project-structure-best-practices)

Discover best practices for a scalable FastAPI project structure. Organize your code into an app package with sub-modules for routers, schemas, models and more using the application factory pattern.

- Tags: best-practices
- Published: 2026-02-16

### [FastAPI vs Flask: Performance Benchmarks and Architectural Differences](/tiangolo/fastapi/fastapi-vs-flask-benchmarks)

Discover FastAPI vs Flask performance benchmarks. FastAPI excels with async support and Pydantic validation, outperforming Flask's synchronous WSGI for high throughput APIs.

- Tags: performance
- Published: 2026-02-16

### [How to Run FastAPI from PyCharm: Essential Setup Steps](/tiangolo/fastapi/how-to-run-fastapi-pycharm)

Learn to run FastAPI from PyCharm. Install FastAPI, create a main.py file, and configure a Python Run/Debug setup to easily get your server running inside the IDE.

- Tags: getting-started
- Published: 2026-02-16

