A subscription
Nothing that watches a deployment polls it. What a subscriber is owed instead is five rules.
The five rules
| # | Rule | Prevents |
|---|---|---|
| 1 | a subscription begins with a snapshot | a consumer opened onto a quiet deployment showing nothing |
| 2 | delivery is bounded per subscriber | the slowest consumer becoming the deployment's clock |
| 3 | an overflow is announced with a fresh snapshot | a picture that silently diverged, or a subscription closed under a consumer that did nothing wrong |
| 4 | events about one subject arrive in the order they happened | a consumer reordering what it is told about one thing |
| 5 | what a subscriber accumulates is a cache | a 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 told | before it can act on a picture that has diverged |
| Then it receives | a fresh snapshot at a new sequence, and the stream resuming after it |
| It never receives | the 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 acknowledged | a sequence: the last event the consumer processed |
| How often | every 10 s |
| When it is stale | after 3 missed intervals |
| Being stale produces | channel.subscription.stale, an ordinary event about the channel |
| It never produces | buffering: 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 queue | 256 events |
| the confirmation interval | 10 s |
| the confirmation tolerance | 3 missed intervals |
| the snapshot boundary | the sequence it was taken at; the stream resumes at the next |