Registry / messaging / confluentinc-confluent-kafka-go-v2

confluentinc-confluent-kafka-go-v2

JSON →
library2.14.2gogounverified

Confluent's Apache Kafka Go client based on librdkafka, providing high-level producer and consumer APIs.

go get github.com/confluentinc/confluent-kafka-go/v2
INSTALL
IMPORT
SIG · CONFLUENTINC-CONFL
C
confluentinc-confluent-kafka-go-v2
messaginggov2.14.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

kafka
github.com/confluentinc/confluent-kafka-go/v2/kafka

Create a Kafka producer

package main import ( "fmt" "github.com/confluentinc/confluent-kafka-go/v2/kafka" ) func main() { p, err := kafka.NewProducer(&kafka.ConfigMap{"bootstrap.servers": "localhost:9092"}) if err != nil { panic(err) } defer p.Close() fmt.Println("Producer created") }
Debug
Known issues
gotchaRequires librdkafka C library to be installed on the system.
fix
Install librdkafka via package manager or build from source.
affects: all
Upgrade
Version history
2.14.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
26
OpenAI (training)
2
Resources
confluentinc-confluent-kafka-go-v2 — go get confluentinc-confluent-kafka-go-v2 · libregistry