Topic aliases
Use topic aliases to simplify topic management in Stream Connect. A topic alias is a unique topic name that can be connected to any underlying Hermes or Direct Kafka topic. A topic alias can be moved to different instances and connected to a different underlying topic on each instance.
Topic alias example
This example shows the form for a topic alias that is connected to a Direct Kafka topic.
The full name of the topic alias is Incoming-Messages [Global]. A topic alias has a qualified name: It's a combination of the name that it's given (in this case, Incoming-Messages) followed by its application scope. It’s possible for there to be multiple topic aliases with the same given name if the aliases are in different application scopes.
In the Related Links section, there are links to connect or disconnect topics. If a topic alias is already connected to a topic, there will be a link to disconnect it. In this example, the topic alias is already connected to a topic, so the link is Disconnect Direct Kafka Topic. If the topic alias wasn't already connected to a topic, the link would say Connect Direct Kafka Topic.
- If the ServiceNow Stream Connect Installer (Direct Kafka) (com.glide.hub.stream_connect.onprem_installer) plugin is installed, links to connect or disconnect Direct Kafka topics appear.
- If the ServiceNow Stream Connect Hermes (com.glide.hub.stream_connect.hermes) plugin is installed, links to connect or disconnect Hermes topics appear.
- If both plugins are installed, links for both Hermes topics and Direct Kafka topics appear.
- The Hermes Topics tab displays any connected Hermes topics. This tab only appears on hosted instances that have access to the ServiceNow hosted Hermes service.
- The Direct Kafka Topics tab displays any connected Direct Kafka topics. This tab generally appears only for on-premise instances where the ServiceNow Stream Connect Direct Kafka (com.glide.hub.stream_connect.direct_kafka) plugin is installed.
- The Kafka Subscriptions tab displays any associated subscriptions and related statistics. For more on subscription statistics, see Viewing Kafka subscriptions and statistics.
- The Kafka Producers tab displays any associated producers and their related statistics. For descriptions of producer statistics, see Viewing producer statistics.
Topic and topic alias tables
You can see topic aliases in the Topic Aliases [sys_sc_topic_alias] table. Certain ServiceNow product offerings may create internal topic aliases that can't be deleted or modified.
Direct Kafka topics are on the Direct Kafka Topics [sys_kafka_direct_topic] table. Hermes topics are on the Kafka Topics [sys_kafka_topic] table.
Create and connect a topic alias
Create a topic alias and connect it to an underlying Hermes or Direct Kafka topic.
Avant de commencer
Role required: stream_connect_admin
Procédure
Résultats
After the topic alias is connected to a topic, the topic name appears in the appropriate tab: A Hermes topic appears in the Hermes Topics tab, and a Direct Kafka topic appears in the Direct Kafka Topics tab.