Introduction
BookWorm's business purpose, architectural scope, and intended audience.
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 context | Deployable services | Authoritative responsibility |
|---|---|---|
| Catalog | 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, Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and synchronizes semantic search vectors in Qdrant. SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs | Book details, authors, categories, publishers, prices, cover images, search, and rating summaries |
| Shopping | 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 | Baskets and customer selections before checkout |
| Ordering | 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, 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 docs | Accepted orders, purchase details, order status, and post-checkout coordination |
| Reviews | 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 | Customer feedback and review summaries |
| Conversational | Chat 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 docs | Guided book discovery and assistance based on catalog and review information |
| Platform | Notification 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 docs | Shared 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.
Related architecture documentation
- Requirements OverviewCustom DocRequirements OverviewEssential BookWorm capabilities and architectural requirements synthesized from the current catalog.Ownerarchitecture-enabling-teamOpen doc — Essential functional and architectural requirements.
- Quality GoalsCustom DocQuality GoalsPrioritized, scenario-based quality goals for BookWorm and the current status of their acceptance targets.Ownerarchitecture-enabling-teamOpen doc — Top five prioritized quality goals and acceptance evidence.
- StakeholdersCustom DocStakeholdersRoles affected by BookWorm's architecture, what they expect from it, and how this documentation supports them.Ownerarchitecture-enabling-teamOpen doc — Stakeholder roles and their documentation needs.
- Architecture ConstraintsCustom DocArchitecture ConstraintsMandatory technical, organizational, and engineering guardrails for BookWorm.Ownerarchitecture-enabling-teamOpen doc — Technical, organizational, and coding constraints.
- Context and ScopeCustom DocContext and ScopeBusiness and technical boundary of the complete BookWorm platform.Ownerarchitecture-enabling-teamOpen doc — Detailed business and technical context views.
- Architecture overviewCustom DocArchitecture overviewSystem context, container structure, and capability ownership for the BookWorm platform.Ownerarchitecture-enabling-teamOpen doc — Visual C4 Context and Container diagrams.