Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.51 KB

kafka-topic-component.md

File metadata and controls

41 lines (27 loc) · 1.51 KB

kafka_topic_component

kafka_topic_component($id, $name, $key="", $payload="", $compacted="", $entries="", $dir="horiz")

Creates component that represents kafka topic.

It lets you add the information what is the topic key and value and whether it is a compacted topic or not. You can also embed a list of example entries.

Arguments

Parameter Description
$id Participant ID. Identified to be referenced on the diagram.
$name Kafka topic name.
$key Description of topic key.
Default: empty
$payload Description of topic value payload.
Default: empty
$compacted Is the topic compacted.
Allowed values: empty, compacted.
Default: empty
$entries List of example topic entries.
Format: key1:value1|key2:value2
Default: empty
$dir Display direction for the example entries.
Allowed values: horiz, vert
Default: horiz

Usage example:

@startuml

!include https://raw.githubusercontent.com/jrosiek/plantuml-extensions/master/puml_ext.iuml

$puml_ext_include(component/kafka-topic-component.iuml)

kafka_topic_component(A, FooBarBazBooBa, foobarGUID, "{userGUID, userData}", "", "k1:v1|k-2:v-bar2|k-foo:v-boobaa", vert)
kafka_topic_component(B, Boolaboola, bazbarGUID, "", compacted, "k1:v1|k-2:v-bar2|k-foo:v-boobaa")
kafka_topic_component(C, SimpleFoo)

A -right-> B : 1. foo
B --> C : 2. bar

@enduml

diagram