Containers — OL Analytics API
Generated 2026-10-14 15:27 UTC · c4gen dev
The runtime/deployable units inside OL Analytics API and how data moves between them and adjacent systems.
Containers
| Container | Technology | Responsibility |
|---|---|---|
| Analytics API (FastAPI) | FastAPI on Granian (ASGI, 1 worker), Python 3.14, K8s | Root ASGI app mounting the b2b_dashboard tenant at /api/v1/analytics and b2b_learner_records at /api/v1/learner-records. Owns the shared aiomysql StarRocks pool, refreshes its Vault-issued StarRocks credentials at 80% of the lease, and exposes /health/{startup,readiness,liveness}/ plus per-tenant /health/readiness/{tenant}/. Stateless apart from in-process TTL caches (org-manager check 60s, MV freshness, JWKS 1h). |