This QuickStart assumes that you have created a StreamNative cluster with the Kafka protocol enabled, created a service account, and granted the service account
produce and consume permissions to a namespace for the target topic.Before you begin
- Before using an API key, verify that the service account is authorized to access the resources, such as tenants, namespaces, and topics.
- The password for different utilities as
kcatwill be equal totoken:<API KEY>.
Steps
- Install the Kafka C client. See https://github.com/confluentinc/librdkafka?tab=readme-ov-file#installation
-
Build a C application to produce and consume messages.
<bootstrap-servers>: the Kafka service URL of your StreamNative cluster.<api-key>: an API key of your service account.
-
Run the Go application and you should see the following output: