Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Internal BookWorm system that owns catalog management, product discovery, and catalog search index ingestion within the Catalog bounded context.

Internal

System Purpose & Boundary

The Product Catalog System delivers product catalog management, hybrid keyword-and-semantic discovery, and asynchronous search index maintenance within the CatalogDomainv1.0.0CatalogCore BookWorm subdomain that makes books discoverable, purchasable, and consistently described across the customer journ...Ownercatalog-experience-teamDiagramOpen docs domain. It serves Customers browsing and searching for books and Business Users maintaining titles, pricing, cover art, and reference metadata (BookEntityv1.0.0BookCanonical sellable title in the product catalog, encapsulating descriptive metadata, pricing, stock availability, taxono...Ownercatalog-experience-teamOpen docs, AuthorEntityv1.0.0AuthorRepresents a credited author of one or more books in the product catalog, enforcing display-name validity and referentia...Ownercatalog-experience-teamOpen docs, CategoryEntityv1.0.0CategorySingle-level taxonomy classification grouping books by subject or genre within the product catalog.Ownercatalog-experience-teamOpen docs, PublisherEntityv1.0.0PublisherRepresents a publishing house or imprint associated with books in the product catalog.Ownercatalog-experience-teamOpen docs). Shopping baskets (ShoppingDomainv1.0.0ShoppingCoordinates the customer basket and pre-purchase checkout intent, from selecting books through handing an accepted purch...Ownercommerce-fulfillment-teamDiagramOpen docs), accepted order lifecycles (OrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs), and individual customer reviews (ReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs) are explicitly out of scope; the system stores only a derived rating summary on each book.

Note

Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs is the sole system of record for catalog entities and pending search-index work. Catalog CacheContainerv1.0.0Catalog CacheNon-authoritative FusionCache and Redis caching layer owned by the Catalog bounded context for fast book detail lookups ...Ownercatalog-experience-teamDiagramOpen docs and Catalog VectorContainerv1.0.0Catalog VectorNon-authoritative Qdrant vector search index owned by the Catalog bounded context for hybrid semantic and keyword book d...Ownercatalog-experience-teamDiagramOpen docs are disposable, rebuildable projections—search results always resolve final details from the authoritative database so stale projections never leak outdated prices or deleted listings.

Contained Capabilities

Service / AgentRole in SystemPrimary Data StoreInteraction Style (Sync / Async)
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 docsServes versioned HTTP REST endpoints for storefront/backoffice, internal gRPC lookups, hybrid search, and review summary projectionsCatalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs, Catalog CacheContainerv1.0.0Catalog CacheNon-authoritative FusionCache and Redis caching layer owned by the Catalog bounded context for fast book detail lookups ...Ownercatalog-experience-teamDiagramOpen docs, Catalog Blob StorageContainerv1.0.0Catalog Blob StorageAuthoritative Azure Blob Storage container owned by the Catalog bounded context for binary book cover images and media a...Ownercatalog-experience-teamDiagramOpen docs, Catalog VectorContainerv1.0.0Catalog VectorNon-authoritative Qdrant vector search index owned by the Catalog bounded context for hybrid semantic and keyword book d...Ownercatalog-experience-teamDiagramOpen docsSync (HTTP/gRPC) & Async (Kafka)
Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and synchronizes semantic search vectors in Qdrant. SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docsConsumes scheduled batch triggers, generates embeddings, and synchronizes book records into the vector search indexCatalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs, Catalog VectorContainerv1.0.0Catalog VectorNon-authoritative Qdrant vector search index owned by the Catalog bounded context for hybrid semantic and keyword book d...Ownercatalog-experience-teamDiagramOpen docsAsync (Kafka trigger)

External Interactions & Trust Boundaries

System Visualizations

System Context

Component Topology

Architecture Decisions

Architecture Decision Records (10)

Decisions that apply to this Product Catalog System. Search, filter by status, or sort by clicking a column.
Summary
ADR-BW-007: Distinguish authoritative state from derived viewsProposedNov 7, 2026Treat search and rating projections as derived information with explicit consistency limits rather than alternative sources of truth.
ADR-001: Expose domain data through a read-only MCP adapterAcceptedNov 4, 2026The MCP Server exposes read-only capabilities while Catalog and Reviews remain authoritative for their data.
ADR-004: Use domain APIs as MCP data sourcesAcceptedNov 4, 2026MCP data access goes through Catalog and Rating service APIs instead of reading their databases directly.
ADR-002: Keep business ownership outside the SchedulerAcceptedOct 27, 2026The Scheduler System coordinates when work is attempted, while Catalog and Notification systems own validation, processing, business data, and final outcomes.
ADR-001: Use PostgreSQL as the Catalog system of recordAcceptedOct 20, 2026Catalog Database (PostgreSQL) is the single authoritative store for books, authors, categories, and publishers; cache and vector index are derived.
ADR-002: Use Qdrant hybrid vector and keyword search for product discoveryAcceptedOct 20, 2026Text search finds candidate book IDs in Qdrant using embeddings plus keyword matching, then loads canonical records from PostgreSQL.
ADR-003: Maintain the vector index asynchronously through a database-backed queueAcceptedOct 20, 2026Database triggers enqueue changed books, and Catalog Ingestion drains the queue in batches to update Qdrant, decoupling writes from embedding generation.
ADR-004: Use FusionCache with Redis for selected catalog readsAcceptedOct 20, 2026Hot book lookups and the dashboard summary are cached through a FusionCache L1 in-process plus Redis distributed layer, treated as disposable.
ADR-005: Store book images in Blob Storage and persist only the URNAcceptedOct 20, 2026Image bytes live in Blob Storage; the database keeps a stable URN and fresh access URLs are resolved on read.
ADR-006: Keep only a derived rating summary on Catalog booksAcceptedOct 20, 2026Reviews owns individual feedback; Catalog stores just an average rating and review count per book, updated from feedback integration messages.
  • Product IngestionFlowv1.0.0Product IngestionCatalog API persists product changes in PostgreSQL; Scheduler triggers Catalog Ingestion over Kafka every five minutes t...Ownercatalog-experience-teamView flowOpen docs — End-to-end catalog authoring and vector indexing workflow.
  • User CheckoutFlowv1.0.0User CheckoutAn authenticated customer checks out a persisted basket through Ordering API; Finance coordinates asynchronous basket cl...Ownercommerce-fulfillment-teamView flowOpen docs — Checkout flow consuming catalog price and title lookups.
  • domains/bookworm/subdomains/catalog/engineering/01-consistency-and-data-ownership — Catalog consistency and ownership invariants.
  • domains/bookworm/subdomains/catalog/guides/01-managing-catalog-data — Guide for maintaining books, authors, categories, and publishers.
  • domains/bookworm/subdomains/catalog/guides/02-search-and-discovery — Guide for hybrid keyword and semantic search.