Skip to content

r.multiStreamProjection(...)

r.multiStreamProjection(definition) — registers a cross-aggregate async projection. The event-dispatcher owns delivery via a dedicated cursor: at-least-once, strictly ordered by event id — handlers must be idempotent. For views spanning many aggregate types (billing summaries, audit views, saga state); omit the table for pure side-effect consumers (notifications, webhooks, external-system sync).


From packages/framework/src/engine/feature-ast/patterns.ts -> MultiStreamProjectionPattern