Search by

archim / ordering

unixslayer

Ordering archetype: event-sourced orders whose confirmation drives a fulfillment process, with a reply to the orderer

v0.1.0 2026-12-03 19:05 UTC

This package is auto-updated.

Last update: 2026-12-03 19:10:53 UTC


README

The Ordering archetype of ArchIM: it turns an intent into a fulfillment request and coordinates it, but does not perform it. An order line points at a product, a quantity, the specification the orderer chose and the price the orderer computed.

What it answers

  • What is the state of the order and of its lines?
  • Who takes part in the order, and in which role?
  • Which process fulfils it, and how did it end: fulfilled, cancelled or failed?

What it provides

  • Orders with their whole history: lines added to a draft, removed with a reason once confirmed, confirmed, cancelled.
  • Fulfillment by process: a fulfiller in the same application is called on confirmation and cancellation; a fulfiller in another deployment follows Ordering's public events and reports its progress with a command over the Distributed Bus.
  • Participants in roles, validated per process.
  • A reply to the orderer when the order reaches its final state, also across deployments.
  • Read models of orders, and public events of confirmed and cancelled orders and of lines removed from a confirmed one.

Documentation

License

Apache License 2.0: see the LICENSE file.