Must (Must v0.1.0-dev)

Copy Markdown View Source

The primary interface for processing commands in Must.

Telemetry

Must uses Telemetry to emit event metrics.

Metrics

  • must.command_processed.start: The start time of command processing.
  • must.command_processed.stop: The stop time of command processing.
  • must.command_processed.duration: The total duration of command processing.
  • must.command_processed.exception: The exception that occurred during command processing.

Summary

Functions

All-in-one command processing function.

Functions

process_command(command, opts)

All-in-one command processing function.

This is the recommended way to process a command.

Processing Flow

  1. Authorize the command
  2. Validate the command
  3. Translate the command to an event
  4. Persist the event
  5. Handle the event
  6. Return the event