Skip to main content
Version: Current

StoreNotification

@rotorsoft/act-root


@rotorsoft/act-root / act/src / StoreNotification

Type Alias: StoreNotification

StoreNotification = object

Defined in: libs/act/src/types/ports.ts:152

Payload delivered by Store.notify when a different process commits one or more events to the same backing store.

Notifications are emitted per stream a commit appends to, not per event — a commit of N events to one stream produces one notification carrying all N events, and a commit across streams one for each, with that stream's events. This minimizes wire wakeups and lets handlers reason about atomic batches.

Stores that implement notify self-filter their own commits — handlers receive notifications only for cross-process activity. This is the signal that lets a horizontally-scaled Act deployment wake settle() immediately on remote commits, instead of waiting for the next poll/debounce cycle.

Properties​

events​

readonly events: ReadonlyArray<{ id: number; name: string; }>

Defined in: libs/act/src/types/ports.ts:154

Events in this commit (id + name), in commit order


stream​

readonly stream: string

Defined in: libs/act/src/types/ports.ts:153

Stream that was committed to