TopicSubRequest
Purpose
Subscription request for a pub/sub topic.
Type
Reception:
TopicSubRequestV1
Record with fields:
Pub/sub topic identity
Whether the subscription request is local-only or should be also sent to the network
Triggers:
TopicSubResponseV1
Behaviour
If the topic already exists in the RoutingTable,
the EngineIdentity of the requesting engine is added to the RoutingTable,
and a TopicSubResponse is returned with a success result.
Otherwise, if the topic does not exist yet:
Message flow
sequenceDiagram
%% --8<-- [start:sequence]
Any Local Engine ->>+ Router: TopicCreateRequest
Router ->>+ PubSub: SubscribeRequest
PubSub -->>- Router: SubscribeResponse
Router -->>- Any Local Engine: TopicCreateResponse
%% --8<-- [end:sequence]
(Wiki) links on this page