talira

Go client library for Apache Kafka

open sourceMITfree

Sarama is an MIT-licensed Go client library for Apache Kafka, with producers, consumers, consumer groups and an admin client, plus mocks for testing and a set of command-line tools for testing and diagnostics. It supports the two latest stable releases of Kafka and Go, with a two-month grace period for older ones, and follows Go module semantic versioning. Shopify started it, and IBM maintains it now.

Problems it solves

  • produce and consume Kafka messages from a Go service
  • a pure Go Kafka client without cgo
  • mock Kafka in Go unit tests

Features

  • producers, consumers and consumer groups
  • admin client
  • mocks subpackage for tests
  • command-line tools for testing and diagnostics
  • supports the two latest Kafka and Go releases