Skip to content

Latest commit

 

History

History
91 lines (61 loc) · 1.4 KB

order-service-example-canvas.adoc

File metadata and controls

91 lines (61 loc) · 1.4 KB

Order Service canvas

This canvas describes the Order Service, which is part of the FTGO application.

Name: Order Service

Description:

The Order Service provides an API for creating, revising, and cancelling orders.

Capabilities

Order Management

Service API

Commands

Queries

Events Published

Synchronous:

  • createOrder()

  • reviseOrder()

  • cancelOrder()

Asynchronous:

  • N/A

getOrder()

Order event channel:

  • Order Created

  • Order Authorized

  • Order Revised

  • Order Cancelled

  • …​

Non-functional requirements

  • 99.95% availability

  • 1000 orders/second

Observability

Key metrics

  • placed_orders

  • approved_orders

  • rejected_orders

  • …​

Health check endpoint

/actuator/health

Implementation

Domain Model

  • Order aggregate

Dependencies

Invokes

Subscribes to

Consumer Service:

  • validateOrder()

Kitchen service:

  • createTicket()

  • confirmCreateTicket()

  • cancelCreateTicket()

Accounting Service

  • authorize()

Restaurant Service

  • Restaurant Created event

  • Restaurant Menu Revised event

Saga reply channels:

  • Create Order Saga

  • Revise Order Saga

  • Cancel Order Saga