This is a demo catalog. Create one for your own architecture with a single prompt.

Get started →

Eventing model

How commands, events and queries are used across Acme Inc's event-driven commerce platform.

Contracts

The catalog separates messages by intent.

  • Commands ask another capability to do something.
  • Events announce that something has already happened.
  • Queries request information without changing state.

Commands

Commands are named in the imperative and should have one clear handler. Examples:

Events

Events are facts and should be safe for multiple consumers. Examples:

Queries

Queries are explicit read contracts. Examples include Get ProductQueryv1.0.0Get ProductQuery to fetch a single product by its identifier. Ownerproduct-platformSchemaDiagramOpen docs, Search ProductsQueryv1.0.0Search ProductsQuery to search the catalog for products matching a term, with optional filters and pagination. Ownersearch-platformSchemaDiagramOpen docs, Get OrderQueryv1.0.0Get OrderQuery to fetch a single order by its identifier. Ownerordering-platformSchemaDiagramOpen docs, Get CustomerQueryv1.0.0Get CustomerQuery to fetch a single customer by their identifier. Ownercustomer-platformSchemaDiagramOpen docs, Get Stock LevelQueryv1.0.0Get Stock LevelQuery to fetch the current available stock level for a product. Ownerfulfilment-platformSchemaDiagramOpen docs and Get Product ReviewsQueryv1.0.0Get Product ReviewsQuery to fetch the published reviews and aggregate rating for a product. Ownerreviews-platformSchemaDiagramOpen docs.

Versioning expectations

Backward-compatible additions are preferred. Removing fields or changing semantics requires a versioned contract and a migration plan. For customer-critical flows, review the flow page and all participating messages before changing a schema.

Failure expectations

Consumers should be idempotent. Producers should publish facts after durable state changes. Long-running processes should persist their progress, especially Checkout SagaFlowv1.0.0Checkout SagaHow the Checkout Orchestrator turns a checked-out cart into an order — reserving inventory, authorizing payment and crea...Ownerordering-platformView flowOpen docs, payment processing, search indexing and review moderation.