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

Read the architecture guide →

Introduction

BookWorm's business purpose, architectural scope, and intended audience.

Architecture

BookWorm is an online bookstore platform. It helps customers find books, maintain a basket, place and track orders, share reviews, and receive AI-assisted guidance. Store teams use it to manage catalog and customer information.

The platform separates its responsibilities into six areas so that each area can grow and change without taking ownership of another area’s information.

Business purpose and user roles

BookWorm serves two primary user groups:

  • Customers: Find and compare books, ask for recommendations, maintain a basket, place checkout requests, track orders, and publish reviews.
  • Store administrators and business users: Manage books, authors, categories, publishers, customer orders, buyer information, and review moderation.

Platform scope and bounded contexts

Each area owns its business rules and records. Services share information only through clearly defined interfaces.

Bounded contextDeployable servicesAuthoritative responsibility
CatalogCatalog 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, Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and synchronizes semantic search vectors in Qdrant. SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docsBook details, authors, categories, publishers, prices, cover images, search, and rating summaries
ShoppingBasket 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 docsBaskets and customer selections before checkout
OrderingOrder 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, Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docsAccepted orders, purchase details, order status, and post-checkout coordination
ReviewsRating 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 docsCustomer feedback and review summaries
ConversationalChat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs, 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 docsGuided book discovery and assistance based on catalog and review information
PlatformNotification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs, 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 docsShared notifications and scheduled work, without owning a business area

System boundary and external dependencies

The diagram shows the BookWorm platform boundary, its users, its six internal areas, and its external services.

Loading graph...

Verified vs. unimplemented external boundaries

  • Implemented external integrations: Identity and access services authenticate users and control access for customers, administrators, and business users. AI model services provide conversational, decision-support, and search capabilities. Email services send messages in local and cloud environments. Messaging distributes work between services, while vector storage enables semantic search. Internal privacy services detect and remove sensitive personal information.
  • Out-of-scope conceptual boundaries: Payment providers and shipping providers are not implemented. Post-checkout coordination manages basket cleanup and notifications; it does not accept or settle payments.

Architectural scope trade-offs

  • Separate areas over a shared model: Keeping domain data separate prevents hidden dependencies and protects checkout accuracy. It requires clear interfaces between areas.
  • Shared services vs. business ownership: Keeping notification and scheduled work separate prevents shared infrastructure from taking over commerce responsibilities.
  • Specialist services: Using established identity, AI, email, messaging, and search services lets the team focus on bookstore capabilities.