Skip to main content
Version: 0.2.1

A subscription

Nothing that watches a deployment polls it. What a subscriber is owed instead is five rules.

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.

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