roboto.domain.platform_events.once_per
Module Contents
OncePer
Bases: roboto.compat.StrEnum
A grain an event offers for deduplication: the occurrence itself, or an entity the event names.
This is an event’s vocabulary, not a trigger’s. Each PlatformEventType declares the grains it supports, and how an occurrence projects onto each, in its PlatformEventDescriptor; that projection is what turns one occurrence into one idempotency token. A trigger only chooses among the grains its events offer, and its choice must be legal for every event type it subscribes to.
Attributes
OncePer.Event
Fire once per event, the annotation marking a span of time on your data.
OncePer.Occurrence
Fire on every occurrence; nothing collapses. Supported by every event type.