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

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • 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

    Discontinued Sarama is a Go library for Apache Kafka. [Moved to: https://github.com/IBM/sarama]

  • 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.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • 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