Fastapi
- Use Pydantic models for request and response contracts.
- Use dependency injection for reusable dependencies.
- Keep endpoint handlers focused.
- Use async only when the dependency stack and workload benefit.
- Define explicit response models and error behavior.