Blob Storage
Canonical sources
Do not duplicate
- Provider configuration runbooks
- Environment variable inventories
- SAS token generation details
- Storage path conventions
Document bytes, training artifacts, and workflow I/O flow through a unified blob storage abstraction with interchangeable MinIO (local) and Azure Blob (cloud) providers. Azure Document Intelligence training still uses Azure storage directly when SAS URLs are required.
Source Map
- Architecture and provider selection live in
docs-md/architecture/BLOB_STORAGE.md. - NestJS provider implementations live in
apps/backend-services/src/blob-storage/. - Temporal worker access goes through the group-bound helpers
getGroupBlobStorage/readGroupBlobunderapps/temporal/src/blob-storage/(Temporal Worker Usage section ofBLOB_STORAGE.md). - Workflow blob read activity lives in
apps/temporal/src/activities/blob-read.ts.
Design Notes
BLOB_STORAGE_PROVIDERselects the active backend at runtime; backend and Temporal must agree on provider configuration.- Prefer the shared interface over provider-specific APIs in application code.
- Training and OCR paths may touch both the unified abstraction and Azure-only services; check which layer a feature uses before changing storage behavior.
Related Topics
- System overview: platform boundaries and where storage sits in the architecture.
- Graph workflows: blob I/O nodes and workflow activity paths.
- Deployment and ops: environment-specific storage setup and operational runbooks.
Common Drift Risks
- Backend and Temporal provider configuration can diverge across local, CI, and OpenShift environments.
- README feature lists may mention storage capabilities without matching current provider support.
- Deployment topology changes should trigger a review of blob backup and restore guidance.