EngineMessage
Purpose
A message sent between engine instances (both local & remote).
Type
Reception:
EngineMessageV1
Record with fields:
-
body
: Vec
Serialized message body
Triggers:
EngineMessage
P2PMessage
RelayMessage
DomainRequest
Behaviour
When the router receives an EngineMessage from a local engine instance,
it processes it the following way:
-
It looks up dst
, the DestinationIdentity in the routing table:
-
If a route is found, the EngineMessage is processed the following way,
depending on the type of DestinationIdentity:
- If no route is found, the message is dropped.
When processing the EngineMessage, the given RoutingPrefs and RoutingScope is respected.
Message flow
sequenceDiagram
%% --8<-- [start:sequence]
Transport -) Router: P2PMessage
Router -) Router: EngineMessage
Router -) Any Local Engine: EngineMessage
Any Local Engine -) Router: EngineMessage
Router -) Router: EngineMessage
Router -) Transport: P2PMessage
Router -) Router: RelayMessage
Router -) DomainRouting: DomainRequest
%% --8<-- [end:sequence]
(Wiki) links on this page