Skip to content

TopicCreateRequest

Purpose

Create a pub/sub topic and start accepting subscriptions to it.

Type

Reception:

TopicCreateRequestV1

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 the scope allows.

Triggers:

TopicCreateResponseV1

Result

Behavior

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]