Collecting Connection Information

Before accessing a Kafka instance for message production and consumption, obtain the following information of the instance.

Instance Connection Address and Port

Obtain them from the Basic Information page on the Kafka console.

For a cluster Kafka instance that has at least three connection addresses, you are advised to configure all of the connection addresses on the client for high reliability.

For public network access, you can use the public network addresses displayed on the Basic Information page.

Figure 1 Viewing the connection addresses and ports of brokers of a Kafka instance

Topic name

Obtain the topic name from the Topics page of the Kafka instance console.

If Automatic Topic Creation is disabled, a topic must be created first. Then a Kafka instance can be accessed from a client for message production and consumption.

Ciphertext Access

If ciphertext access is enabled for the instance, obtain the instance username and password, SASL mechanism, and security protocol. In addition, obtain the SSL certificate if the security protocol is set to SASL_SSL.