Server Core¶
- create_app() FastAPI[source]¶
Create and configure the core FastAPI application instance.
- Returns:
The fully configured application instance.
- Return type:
FastAPI
- lifespan(app: FastAPI, settings: Settings) AsyncIterator[None][source]¶
Manage application lifecycle resources.
Handles the setup and teardown of essential asynchronous services, including logging queue, Redis client, and application-level caches.
- Parameters:
app (FastAPI) – The main application instance.
settings (Settings) – The application settings object.
- Yields:
AsyncIterator[None] – Context manager flow control.