Go

This section describes how to access a Kafka instance using Go 1.16.5 on the Linux CentOS, how to obtain the demo code, and how to produce and consume messages.

Before getting started, ensure that you have collected the information listed in Collecting Connection Information.

Preparing the Environment

Producing Messages

Replace the following information in bold with the actual values.

Consuming Messages

Replace the following information in bold with the actual values.