Skip to main content
Version: 0.15.1

A subscription

Nothing that watches a deployment asks it again and again what is happening: it subscribes, and is owed five rules. A subscription begins with a snapshot and delivers through a bounded queue. It announces an overflow with a fresh snapshot, keeps the events about one subject in order, and leaves the subscriber holding a cache, never an authority. Together the rules let a panel or a tool keep a correct picture without ever slowing the deployment down. This page states the five rules, and the confirmed subscription used where a deployment must know that the view of whoever operates it is current.

The five rules​

#RulePrevents
1a subscription begins with a snapshota consumer opened onto a quiet deployment showing nothing
2delivery is bounded per subscriberthe slowest consumer becoming the deployment's clock
3an overflow is announced with a fresh snapshota picture that silently diverged, or a subscription closed under a consumer that did nothing wrong
4events about one subject arrive in the order they happeneda consumer reordering what it is told about one thing
5what a subscriber accumulates is a cachea derived picture treated as an authority

1 — The snapshot​

  • It holds the subjects of the level types the filter selects, with each one's current value. Edge types contribute nothing.
  • It is taken at an event sequence, and the stream begins at the next one. An event concluded while the snapshot was assembled is in it or after it, never both and never neither.
  • Where a surface's snapshot is made of records, as the administrative and interface surfaces' are, a change concluded while the records are assembled may show in a record and then arrive as its event. Every record field is a level, so applying the event again changes nothing.

2 — Bounded delivery​

  • One queue per subscriber, of 256 events. The bound is not declarable.
  • Delivery is not graded by severity. An event at 90 and one at 10 are delivered alike.
  • There is no guaranteed delivery. An occurrence that must not be lost is recorded in the log store.

3 — Overflow​

The subscriber is toldbefore it can act on a picture that has diverged
Then it receivesa fresh snapshot at a new sequence, and the stream resuming after it
It never receivesthe events that were dropped: levels are in the snapshot, edges in the log store

The announcement belongs to the subscription and is not an event type: it has no subject, no durable counterpart, and no other subscriber can see it.

4 — Ordering​

Events about one subject arrive in the order the Core concluded them, observable through their sequences. Across subjects nothing is ordered.

5 — The cache​

What a subscriber accumulates is derived, valid while the subscription lives, and never an authority. A consumer about to decide something asks the Core.

A confirmed subscription​

Where a consumer is how a person operates a deployment, the deployment must know within a bound when that consumer stopped being current. A confirmed subscription is one whose consumer acknowledges its position periodically.

What is acknowledgeda sequence: the last event the consumer processed
How oftenevery 10 s
When it is staleafter 3 missed intervals
Being stale produceschannel.subscription.stale, an ordinary event about the channel
It never producesbuffering: the queue is released, and the consumer's return is a fresh snapshot
  • Acknowledgement is per subscription, not per event.
  • Neither figure is declarable, and neither is being confirmed: a channel named in an arbitration rule is confirmed because it is named there.
  • Confirmation exists only on the interface surface. The administrative surface never confirms.
  • Confirmation bounds how quickly staleness is detected; it does not promise delivery.

Figures​

a subscriber's queue256 events
the confirmation interval10 s
the confirmation tolerance3 missed intervals
the snapshot boundarythe sequence it was taken at; the stream resumes at the next