Skip to content

Event

Purpose

An event sent to a topic.

Type

Reception:

EventV1

Record with fields:

Topic the event is published to

PubSub engine identity of pulisher

  • seq: u32

Sequence number of publisher

  • deps: Vec

Events this event depends on

  • seen: Vec

Independent events recently seen

  • body: Vec

Encapsulated EngineMessage

  • sig: Signature

Signature by publisher over the above fields

Triggers:

Event

EngineMessage

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]
(Wiki) links on this page