Catalog and search
How product data is owned by the Product Catalog System and projected into Search for customer discovery.
CatalogDomainv1.0.0CatalogThe Catalog domain owns everything about products — how they are created, maintained and made discoverable across Acme I...Ownerproduct-platformDiagramOpen docs owns the product information that customers browse and buy. It is split into two systems with different consistency needs.
System context map
Product Catalog System
Product Catalog SystemSystemv1.0.0Product Catalog SystemInternal system that is the source of truth for product data. Owns the product database and publishes product change eve...Ownerproduct-platformDiagramOpen docs is the source of truth. Product APIServicev1.0.0Product APIThe public-facing API for the product catalog. Handles commands to create, update and delete products, serves product re...Subscribescreate-product, update-product +2APIsOpenAPIOwnerproduct-platformDiagramRepositoryOpen docs handles product commands and reads from Product DatabaseContainerv1.0.0Product DatabasePostgreSQL database that is the system of record for all product data.Ownerproduct-platformDiagramOpen docs. Product changes are captured through an outbox and published by Product Search PublisherServicev1.0.0Product Search PublisherReads product changes from the product database (outbox) and reliably publishes product-created, product-updated and pro...Publishesproduct-created, product-updated +1Ownerproduct-platformDiagramRepositoryOpen docs.
Key contracts:
- Create ProductCommandv1.0.0Create ProductCommand to add a new product to the catalog. Ownerproduct-platformSchemaDiagramOpen docs
- Update ProductCommandv1.0.0Update ProductCommand to update an existing product in the catalog. Ownerproduct-platformSchemaDiagramOpen docs
- Delete ProductCommandv1.0.0Delete ProductCommand to remove a product from the catalog. Ownerproduct-platformSchemaDiagramOpen docs
- Get ProductQueryv1.0.0Get ProductQuery to fetch a single product by its identifier. Ownerproduct-platformSchemaDiagramOpen docs
- Product CreatedEventv1.0.0Product CreatedPublished when a new product has been added to the catalog. Ownerproduct-platformSchemaDiagramOpen docs
- Product UpdatedEventv1.0.0Product UpdatedPublished when an existing product's data has changed. Ownerproduct-platformSchemaDiagramOpen docs
- Product DeletedEventv1.0.0Product DeletedPublished when a product has been removed from the catalog. Ownerproduct-platformSchemaDiagramOpen docs
Search System
Search SystemSystemv1.0.0Search SystemInternal system that keeps product data searchable. Consumes product change events from the Product Catalog System, main...Ownersearch-platformDiagramOpen docs serves product discovery through Search APIServicev1.0.0Search APIPublic-facing API that serves fast, relevant product search to the rest of the business, reading from the search index. Subscribessearch-productsAPIsOpenAPIOwnersearch-platformDiagramRepositoryOpen docs and Search ProductsQueryv1.0.0Search ProductsQuery to search the catalog for products matching a term, with optional filters and pagination. Ownersearch-platformSchemaDiagramOpen docs. It maintains Search IndexContainerv1.0.0Search IndexThe denormalised, search-optimised index of products that powers product search.Ownersearch-platformDiagramOpen docs from product events.
The Search System should be treated as eventually consistent with the Product Catalog System. If a merchandiser updates a product, the product database is immediately authoritative; search visibility follows after indexing.
Decision context
The product catalog has several architecture decisions documented directly on the system:
- ADR-001: Publish product events via a transactional outboxDecision Recordv1.0.0ADR-001: Publish product events via a transactional outboxProduct change events are written to an outbox table in the same transaction as the change, then relayed to the broker, ...Ownerproduct-platformOpen docs
- ADR-002: Use PostgreSQL as the product system of recordDecision Recordv1.0.0ADR-002: Use PostgreSQL as the product system of recordProduct data is stored in a single PostgreSQL database that acts as the authoritative system of record, with derived sto...Ownerproduct-platformOpen docs
- ADR-003: Offload long-running catalog work to a dedicated workerDecision Recordv1.0.0ADR-003: Offload long-running catalog work to a dedicated workerSlow and asynchronous catalog tasks (enrichment, image processing, bulk imports) run in a separate Product Worker so the...Ownerproduct-platformOpen docs
These decisions explain why product events are published asynchronously and why Postgres remains the system of record.