Klient - a native, statically-compiled, command line client for Kafka

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/golang

Our great sponsors
  • ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
  • InfluxDB - Access the most powerful time series database as a service
  • SonarLint - Clean code begins in your IDE with SonarLint
  • CodiumAI - TestGPT | Generating meaningful tests for busy devs
  • kafka-go

    Kafka library in Go

    Unlike the standard scripts, and many binary clients, it's a native, statically-compiled, binary. It uses segmentio/go-kafka internally, which means CGO can be disabled during compilation.

  • sarama

    Sarama is a Go library for Apache Kafka.

    I've used mainly sarama wrapped with a bit of bespoke helper libraries. Never really looked into others, just grabbed one that was actively maintained and went for it.


    ONLYOFFICE Docs — document collaboration in your environment. Powerful document editing and collaboration in your app or environment. Ultimate security, API and 30+ ready connectors, SaaS or on-premises

  • Benthos

    Fancy stream processing made operationally mundane

    For consuming/dumping data from kafka I found another Go tool, Benthos to be a really cool swiss-army-knife. It makes it very easy to throw together something that consumes from Kafka, decodes the payload as json, protobuf, avro or a bunch of other supported decoders, maybe does some data-mangling and dumps to stdout or some other kind of sink in some other supported format.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts