by Shopify

Shopify / sarama

Sarama is a Go library for Apache Kafka 0.8, and up.

6.4K Stars 1.1K Forks Last release: 7 days ago (v1.27.2) MIT License 2.4K Commits 43 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


GoDoc Build Status Coverage

Sarama is an MIT-licensed Go client library for Apache Kafka version 0.8 (and later).

Getting started

  • API documentation and examples are available via godoc.
  • Mocks for testing are available in the mocks subpackage.
  • The examples directory contains more elaborate example applications.
  • The tools directory contains command line tools that can be useful for testing, diagnostics, and instrumentation.

You might also want to look at the Frequently Asked Questions.

Compatibility and API stability

Sarama provides a "2 releases + 2 months" compatibility guarantee: we support the two latest stable releases of Kafka and Go, and we provide a two month grace period for older releases. This means we currently officially support Go 1.13 through 1.14, and Kafka 2.4 through 2.6, although older releases are still likely to work.

Sarama follows semantic versioning and provides API stability via the service. You can import a version with a guaranteed stable API via A changelog is available here.


We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.