Careeroza
JobsMentorship

basic

FastAPI Introduction
What is FastAPI?
Installation & First App
Interactive Docs
Python Type Hints
Path & Query Parameters
Path Parameters
Query Parameters
Parameter Validation
Request Body & Pydantic
Pydantic Models
Request Body
Field Validation
Response Models
Responses & Errors
Status Codes
HTTPException
Response Types

medium

Dependencies
Dependency Injection
Dependencies with yield
Class-based & Global Dependencies
Routers & Project Structure
APIRouter
Project Layout
Settings & Configuration
Databases
CRUD with a Database
SQLAlchemy & SQLModel
Middleware & CORS
Middleware
CORS
Static Files

advance

Authentication & Security
Password Hashing
OAuth2 & JWT
API Security Checklist
Async & Background Tasks
async def vs def
Background Tasks
Lifespan Events
Testing
TestClient & pytest
Overriding Dependencies
Deployment
Production Server
Docker Image
Deploy to Cloud Run
Observability

interview-questions

Questions
Basic Interview Questions
Intermediate Interview Questions
Advanced Interview Questions

Observability

Logs, Metrics, Traces

  • Health endpoint: GET /health for load balancers and orchestrators.
  • Structured logs: JSON logs with a request ID, written to stdout.
  • Metrics: request count, latency and errors (Prometheus via prometheus-fastapi-instrumentator, or the cloud's built-in metrics).
  • Tracing: OpenTelemetry instrumentation for FastAPI follows a request across services.
  • Error tracking: Sentry or Cloud Error Reporting captures exceptions with stack traces.