Deployment Topology
:::info Source
Sourced from services/media-service/DEPLOYMENT_TOPOLOGY.md in the documentation repo.
:::
1. Containers
media-api— REST API.media-scanner— AV + content-safety workers.media-transcoder— ffmpeg / MediaConvert orchestrator.media-ai-worker— AI image/TTS/STT generation.media-outbox-relay.
2. Scaling
| Container | Min | Max | HPA |
|---|---|---|---|
| api | 3 | 15 | CPU>60% |
| scanner | 3 | 30 | queue > 50 |
| transcoder | 3 | 50 | queue > 20 |
| ai-worker | 2 | 15 | queue > 30 |
3. Resources
api: 500m/2000m, 512Mi/1.5Gi. transcoder: 2000m/8000m, 4Gi/16Gi (CPU-heavy).
4. Storage
- S3 per region; per-tenant prefix.
- Hot + Glacier archival.
- MediaConvert (AWS) or equivalent managed transcoder offload optional.
5. CDN
- CloudFront / Fastly for HLS/DASH + thumbnails + captions.
- Signed URLs enforce per-asset + per-user scope.
6. Regional
- Per region. Assets pinned to tenant homeRegion.
- CDN anycast globally.
7. Service Mesh
mTLS. Egress: ai-gateway, authoring, content, search, analytics.
8. Release
Blue/green API. Rolling workers.
9. DR
RPO 15 min (S3 versioning). Assets irrecoverable if S3 object lost (unless originals backed up).