TopicCreateRequest¶
Purpose¶
Create a pub/sub topic and start accepting subscriptions to it.
Type¶
Reception:
Record with fields:
-
topic
: TopicIdentity Pub/sub topic identity. -
scope
: RoutingScope Whether the topic should be advertised over the network. -
advert
: Option<TopicAdvertV1> Topic advertisement to send to the network, when thescope
allows.
Triggers:
Result
Behaviour¶
The topic is added to the RoutingTable with an initially empty subscriber list.
Message flow¶
sequenceDiagram
%% --8<-- [start:sequence]
Any Local Engine ->>+ Router: TopicCreateRequest
Router ->>+ PubSub: StartAdvertRequest
PubSub -->>- Router: StartAdvertResponse
Router -->>- Any Local Engine: TopicCreateResponse
%% --8<-- [end:sequence]