Catalog Blob Storage
Authoritative Azure Blob Storage container owned by the Catalog bounded context for binary book cover images and media assets.
Purpose & Ownership Boundary
Catalog Blob Storage (catalog-blob) is the authoritative object store owned exclusively by Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid
discovery, and authoritative book metadata.
PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs in the Catalog bounded context for binary book cover images. Object storage keeps large binary payloads out of Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs, which stores only permanent blob URNs (books.image) while Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid
discovery, and authoritative book metadata.
PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs mints short-lived, read-only Shared Access Signature (SAS) URLs on demand.
Data Store Profile
| Property | Value |
|---|---|
| Bounded Context / Owner | Catalog — Catalog Experience TeamTeamCatalog Experience TeamStream-Aligned team owning BookWorm's product catalog, customer reviews, and storefront/backoffice discovery experience....Open docs |
| Engine / Technology | Azure Blob Storage (Azure Storage Account in cloud; Azurite emulator locally) |
| Store Type | Object Storage |
| Primary Writer(s) | Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs |
| Primary Reader(s) | Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs (SAS URL minting; clients fetch directly via SAS) |
| Authoritative / Source of Truth | Yes |
| Data Classification | Internal |
| Retention / TTL Policy | 10 years (explicit delete on book/image removal; no automatic lifecycle TTL) |
Logical Data Layout & Key Patterns
| Container / Key Pattern | Stored Data | TTL / Eviction | Invalidation / Update Trigger |
|---|---|---|---|
catalog-blob / {uuidv7}-{safeName}{safeExt} | Binary book cover images (image/jpeg, image/png, image/webp) | 10y retention; 1 hour default read-only SAS URL expiry | Explicit deletion (including snapshots) on image replacement or BookEntityv1.0.0BookCanonical sellable title in the product catalog, encapsulating descriptive metadata, pricing, stock availability, taxono...Ownercatalog-experience-teamOpen docs removal. |
URN reference (books.image in catalogdb) | urn:{account}:catalog-blob:{blobName} | Permanent until book/image is updated or deleted | Validated on every read/delete to match target storage account and container. |
Consistency, Isolation & Security Guardrails
- No public blob access: Public container/blob access is disabled (
AllowBlobPublicAccess = false); access requires Managed Identity RBAC (StorageBlobDataContributor) for Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs and HTTPS-only, read-only SAS URLs (User Delegation Keys in Azure, account-key SAS in local Azurite) for browser downloads. - Strict URN & overwrite protection: Uploads enforce non-empty allowed image MIME types, sanitize filenames (
[a-zA-Z0-9._-], max 100 chars), and guard against accidental overwrites viaIf-None-Match: *. URN validation rejects path traversal (/,\,..) or cross-account mismatches. - No cross-store distributed transaction: Because PostgreSQL and Blob Storage do not share a two-phase commit, a failed database transaction after upload can leave an unreferenced blob that requires periodic reconciliation against
books.image.
Shared Storage Account Isolation: catalog-blob shares the Azure Storage Account with Chat Session Blob StorageContainerv1.0.0Chat Session Blob StorageAuthoritative Azure Blob Storage container owned by the Conversational bounded context for durable AG-UI multi-turn chat...Ownerai-capabilities-teamDiagramOpen docs (chatting-blob) and Azure Functions host storage. Services must use container-scoped references—Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid
discovery, and authoritative book metadata.
PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs must never access chatting-blob, and external services must never read catalog-blob directly or persist expiring SAS URLs.
Operational & Resilience Notes
- Local vs. Cloud: Local development uses a persistent Azurite emulator with Azure Storage
Explorer; cloud environments use Azure Storage Account with TLS 1.2 minimum (
StandardLrsin Dev,StandardZrsin Staging,StandardGzrsin Production). - Expired SAS (403): Re-fetch the book from Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs to mint a fresh 1-hour SAS URL. - Cross-environment URN mismatch: Never copybooks.imageURNs across environments without migrating the corresponding blobs and updating the storage account segment.
Architecture Visualizations
Loading graph...
Related Documentation
- Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs — Owning service managing image uploads, URN persistence, and SAS minting.
- Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs — Relational store holding
books.imageURNs. - Chat Session Blob StorageContainerv1.0.0Chat Session Blob StorageAuthoritative Azure Blob Storage container owned by the Conversational bounded context for durable AG-UI multi-turn chat...Ownerai-capabilities-teamDiagramOpen docs — Sibling container on the shared Azure Storage Account.
- ADR-005: Store book images in Blob Storage and persist only the URNDecision Recordv1.0.0ADR-005: Store book images in Blob Storage and persist only the URNImage bytes live in Blob Storage; the database keeps a stable URN and fresh access URLs are resolved on read.Ownercatalog-experience-teamOpen docs — Decision separating binary cover media from PostgreSQL.
- Backup, Restore & Disaster Recovery (DR)Custom DocBackup, Restore & Disaster Recovery (DR)Operator runbook for PostgreSQL point-in-time restore, Cosmos DB failover verification, Blob Storage recovery, and Qdran...Ownerplatform-engineering-teamOpen doc — Platform backup, restore, and disaster recovery runbook.