Skip to main content
Version: 0.2.0

The families

Everything that travels in a Session belongs to one of eight families. The set is closed: a message that is none of the eight has no place in a Session.

The eight​

FamilyAnswersSent byShape
sessionopen, close, revokedboththree messages
controlwhat should this unit dothe Coreoccasional
ackwhat became of that instructionthe unitcorrelated, at least one per command
querywhat is this unit's answer to a questionasked by the Core, answered by the unitcorrelated
datawhat it is producingthe unitcontinuous, on the stream's own transport
healthis it alive, and how wellthe unitperiodic
eventwhat just happened to itthe unitsporadic
errorwhat went wrongeither sideexceptional

Control and query are asked for by the Core; data, health and events are reports; acknowledgements and query answers are answers.

Direction​

FamilyUnit → CoreCore → unit
session OPEN, CLOSE✓
session REVOKED✓
health✓
control✓
ack✓
query question✓
query answer✓
data✓
event✓
error✓✓

Direction is checked before meaning: a control message from a unit is refused for being that, whatever it contains.

Acknowledgements​

OutcomeMeansThen
acceptedthe unit has the instruction and the work is under wayat most one done or failed
donethe instruction is carried outnothing: the exchange is over
failedit could not be carried outnothing: the exchange is over
  • One acknowledgement when the work is quick; two when it outlasts the wait a caller is given.
  • The Core answers the caller with the first acknowledgement it receives. A final one after accepted closes the exchange and reaches no caller; a unit whose outcome matters to someone reports it as an event.
  • An acknowledgement carries a line for a person and no domain result. Results are answers, and answers travel in the query family.

One order per channel​

Everything on one channel arrives in the order it was sent, across families: on the Session an acknowledgement cannot overtake the health report sent before it.

There is no order across channels. A data message travels on its stream's own transport, so it and an error about it are unordered; the error's correlation names the message it is about.

Events​

The event family is where a unit declares a severity.

An occurrence carries
the occurrence classa name the unit declared and was granted
a severity0–99, declared by the unit and carried unchanged
a linefor a person
a detailopaque: the Core never reads it
  • An occurrence class the unit did not declare, or was not granted, is refused.
  • The severity a unit attaches does not widen what it may report.
  • The Core publishes it as the event unit.occurrence.reported, with the class in the event's occurrence field and the detail in its detail, unchanged.

Health​

A health report carries three things.

its arrivalthat the unit is answering
a grade0–99, on the same ordered scale as an event's severity
a linefor a person
  • It names no dimension — no throughput, no latency. In what respect is what an event says.
  • A report becomes the unit's observed condition, beside its state. It never changes the state: a unit grading itself ninety is still Running.
  • No report means no condition, which is not the same as a report grading itself zero.
  • Liveness comes from reports arriving on the interval the Core assigned.