Event¶
Purpose¶
An event sent to a topic.
Type¶
Reception:
Record with fields:
-
topic
: TopicIdentityTopic the event is published to
-
publisher
: EngineIdentityPubSub engine identity of pulisher
-
seq
: u32Sequence number of publisher
-
deps
: VecEvents this event depends on
-
seen
: VecIndependent events recently seen
-
body
: VecEncapsulated EngineMessage
-
sig
: SignatureSignature by
publisher
over the above fields
Triggers:
Event
Behaviour¶
The Event is forwarded in the network along topic dissemination paths. It contains an encapsulated EngineMessage addressed from an engine to the topic.
The PubSub engine delivers the encapsulated EngineMessage to local engines by sending it to the Router, which forwards it to local engines subscribed to the topic.
Message flow¶
sequenceDiagram
%% --8<-- [start:sequence]
Router -) PubSub: EngineMessage
PubSub -) PubSub: Event
PubSub -) Router: EngineMessage
Router -) Any Local Engine: EngineMessage
%% --8<-- [end:sequence]