Repository navigation
Release v19.190.0
Observers no longer keep the kernel's grains resident. Events are routed by a silo-local routing table of observer definitions, replicated between silos by revision; appended events queues, their routers and observers are collected by Orleans like any other grain once they owe nothing, and an observer without a live subscription is woken by the events it takes.
Added
- Observer definitions carry a revision that increases every time their content changes; definitions stored by earlier releases read as revision 0. SQL storage adds a
Revisioncolumn to the observer definitions table through a migration. (part of #6189) - Each silo holds an in-memory routing table of observer definitions per event store, and a saved definition is published to every active silo, which answers once it holds that revision. (part of #6189)
- An observer supervisor per event store and observer publishes the definition's revision, finds the namespaces in which the observer has events waiting without activating it, and holds which connection serves each namespace in memory. (part of #6189)
- The
cratis.chronicle.appended_events_queue.shadow_routing_disagreementsmetric counts, per dispatched batch, the observers on which the routing table and the queue's live subscriptions disagree. (part of #6189)
Changed
- Appended events queues, the queue router and observers are no longer kept alive regardless of load: each keeps itself only while it holds work, and is collected otherwise. (part of #6189)
- The queue router routes batches from the routing table and no longer activates every queue to seed itself. (part of #6189)
- A queue wakes an observer it holds no live subscription for when an event the observer takes arrives, or when its safety net finds one waiting after the observer's cursor; an observer that stays unsubscribed is woken again after a backoff that doubles up to
observers.dormantSafetyNetFullWake. Queues no longer keep entries for dormant observers or seed them from recorded subscriptions. (part of #6189) - Projection namespaces are set up in the projection engine when a projection there is first used, instead of on every silo when the namespace is added. (part of #6189)
Removed
- The
Shadowcomparison of recorded and live subscriptions;observers.durableSubscriptionCheckIntervalno longer has an effect. (part of #6189) - The sweeps that told dormant observers of departed clients and silos; a recorded connection that is gone is validated when the observer wakes. (part of #6189)