2021-07-08 16:34:09 +03:00
# sarama
2019-11-18 20:33:15 +03:00
2021-07-08 16:34:09 +03:00
[![GoDoc ](https://godoc.org/github.com/Shopify/sarama?status.svg )](https://godoc.org/github.com/Shopify/sarama)
2019-11-18 20:33:15 +03:00
[![Build Status ](https://travis-ci.org/Shopify/sarama.svg?branch=master )](https://travis-ci.org/Shopify/sarama)
2021-07-08 16:34:09 +03:00
[![Coverage ](https://codecov.io/gh/Shopify/sarama/branch/master/graph/badge.svg )](https://codecov.io/gh/Shopify/sarama)
2019-11-18 20:33:15 +03:00
Sarama is an MIT-licensed Go client library for [Apache Kafka ](https://kafka.apache.org/ ) version 0.8 (and later).
2021-07-08 16:34:09 +03:00
## Getting started
2019-11-18 20:33:15 +03:00
- API documentation and examples are available via [godoc ](https://godoc.org/github.com/Shopify/sarama ).
- Mocks for testing are available in the [mocks ](./mocks ) subpackage.
- The [examples ](./examples ) directory contains more elaborate example applications.
- The [tools ](./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 ](https://github.com/Shopify/sarama/wiki/Frequently-Asked-Questions ).
2021-07-08 16:34:09 +03:00
## Compatibility and API stability
2019-11-18 20:33:15 +03:00
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
2021-07-08 16:34:09 +03:00
Go 1.12 through 1.14, and Kafka 2.1 through 2.4, although older releases are
2019-11-18 20:33:15 +03:00
still likely to work.
Sarama follows semantic versioning and provides API stability via the gopkg.in service.
You can import a version with a guaranteed stable API via http://gopkg.in/Shopify/sarama.v1.
A changelog is available [here ](CHANGELOG.md ).
2021-07-08 16:34:09 +03:00
## Contributing
2019-11-18 20:33:15 +03:00
2021-07-08 16:34:09 +03:00
- Get started by checking our [contribution guidelines ](https://github.com/Shopify/sarama/blob/master/.github/CONTRIBUTING.md ).
- Read the [Sarama wiki ](https://github.com/Shopify/sarama/wiki ) for more technical and design details.
- The [Kafka Protocol Specification ](https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol ) contains a wealth of useful information.
- For more general issues, there is [a google group ](https://groups.google.com/forum/#!forum/kafka-clients ) for Kafka client developers.
- If you have any questions, just ask!