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

Read the architecture guide →

Pre-merge engineering checklist for Catalog API, schema, caching, search, and integration contract changes.

Architecture

Purpose & Scope

This checklist defines the mandatory verification steps for engineers modifying 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 or Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and synchronizes semantic search vectors in Qdrant. SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs within the CatalogDomainv1.0.0CatalogCore BookWorm subdomain that makes books discoverable, purchasable, and consistently described across the customer journ...Ownercatalog-experience-teamDiagramOpen docs subdomain. Use it before merging changes to HTTP v1 endpoints, gRPC contracts, Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs schemas, 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 keys, 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 indexing, or Kafka integration events.

Core Invariants & Design Rules

  • Backward-compatible contract evolution: Keep REST (/api/v1/{books,authors,categories,publishers}), gRPC (book.v1.BookGrpcService), and CloudEvents schemas additive; version breaking changes explicitly under ApiVersions or a new protobuf package version.
  • Authorization & rate-limit boundaries: Preserve Microsoft Entra ID policies (catalog_read default, business_user for catalog mutations, admin for dashboard and privileged routes) and endpoint rate-limiting middleware.
  • End-to-end traceability: Keep book-identity, pricing, and availability mutations traceable by BookId in OpenTelemetry traces and structured logs.
  • No direct cross-domain writes: Never allow external services to write to Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs, and never bypass 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 when mutating catalog state.
Note

Checked-in OpenAPI and SQL schema documentation assets in the catalog are not auto-regenerated by CI. Update them in the same pull request whenever HTTP contracts or Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs tables change.

Boundaries & Guarantees

ConcernStrategy & GuaranteeFailure / Edge-Case BehaviorRelated Resources
PersistenceEF Core migrations for catalog-database must use snake_case identifiers and preserve database triggers feeding the pending vector-update queue.Missing triggers or mismatched column names silently drop book edits from catalog-vector indexing.catalog-database, book, author, category, publisher
CachingBook mutations must invalidate book:{id}, book:summary:{id}, books:list, and books:search in catalog-cache; DTO shape changes require bumping the v1 key version.Failing to bump versioned keys causes deserialization errors or stale shapes across rolling deployments.catalog-cache, adr-004-fusioncache-redis-for-catalog-reads
MessagingIntegration events (FeedbackCreatedIntegrationEvent, FeedbackDeletedIntegrationEvent, BookUpdatedRatingFailedIntegrationEvent, ProcessVectorBatchIntegrationEvent) must remain Pact-verified.Breaking schema changes fail consumer-driven contract tests or route payloads to <code>bookworm.{env}.catalog.dead-letter-queue</code>.<code>bookworm.{env}.rating.feedback-create</code>, <code>bookworm.{env}.rating.feedback-delete</code>, <code>bookworm.{env}.catalog.book-update-rating-failed</code>, scheduler.process-vector-batch
ConcurrencyPreserve discount price bounds (0 <= DiscountPrice <= OriginalPrice), DeleteBehavior.Restrict on authors with books, and 24h Redis idempotency on rating event handlers.Removing idempotency guards allows duplicate Kafka deliveries to double-count average_rating and total_reviews.catalog-api, catalog-ingestion, adr-006-reviews-rating-projection-on-book

Safe Change & Verification Checklist

Pre-merge verification workflow

  1. Verify HTTP, gRPC, and Kafka contract compatibility

    Confirm additive compatibility across REST endpoints, book.v1.BookGrpcService (consumed by Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs, Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs, and MCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only Catalog lookup tools and reusable AI prompts. PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docs), and all Pact contract suites with Rating APIServicev1.0.0Rating APIInternal HTTP and A2A gRPC service for collecting, listing, deleting, and summarizing customer feedback for Catalog book...PublishesFeedbackCreatedIntegrationEvent, FeedbackDeletedIntegrationEventSubscribesCreateFeedback, DeleteFeedback +3APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs and Scheduler ServiceServicev1.0.0Scheduler ServiceSingle-host Quartz.NET job execution engine and operational dashboard UI for scheduling recurring platform jobs and insp...PublishesProcessVectorBatchIntegrationEventAPIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs.

  2. Validate PostgreSQL migrations and vector triggers

    Ensure any Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs migration preserves snake_case naming, updates pending-update triggers if searchable attributes changed, and plans a 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 rebuild when indexed text changes.

  3. Audit cache keys, tags, and authorization policies

    Confirm write paths invalidate affected 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 keys/tags, DTO changes bump key versions, and Entra ID policies (catalog_read, business_user, admin) remain enforced.

  4. Run formatting, build, and test suites

    Execute mise run format, mise run build, and mise run test to verify Catalog unit tests, architecture tests, and Pact contract tests pass with zero warnings.