Skip to content

Instantly share code, notes, and snippets.

@vianneyb
Last active April 22, 2021 07:02
Show Gist options
  • Save vianneyb/3cde2e6f6664c95512881a656daf5d42 to your computer and use it in GitHub Desktop.
Save vianneyb/3cde2e6f6664c95512881a656daf5d42 to your computer and use it in GitHub Desktop.
Name: Order Service

Description:

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

Framework:

Language:

Storage:

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment