sarama README

The project's README from github.com/IBM/sarama. As one markdown file: README.md.

sarama

Go Reference OpenSSF Scorecard OpenSSF Best Practices

Sarama is an MIT-licensed Go client library for Apache Kafka.

Getting started

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. However, older releases of Kafka are still likely to work.

Sarama follows semantic versioning and provides API stability via the standard Go module version numbering scheme.

A changelog is available here.

Contributing

sarama (IBM/sarama)

Searching Database…

12.5K ·GitHub
What is this?Sarama is a Go client library for Apache Kafka, letting Go applications produce and consume Kafka messages.
Is this a standalone tool or a library I import into my Go code?It's a library you import into your Go application; it also ships mock packages for testing and some CLI tools for diagnostics.
How do I add it to a project?Add it as a Go module dependency and check the API docs and examples on pkg.go.dev or the examples directory for usage patterns.
Do I need a specific Kafka or Go version?You need a reasonably recent Kafka broker and Go toolchain; Sarama follows a '2 releases + 2 months' compatibility window for both.
Will older Kafka versions still work?They're not officially guaranteed but are likely to still work fine.
Where can I find real usage examples?The examples directory in the repo contains more elaborate example applications showing how to use Sarama in practice.
Can I write tests for code that uses Sarama without a real Kafka broker?Yes, Sarama ships a mocks subpackage specifically designed to let you test code against fake Kafka responses.
Where's the deeper technical documentation?The Sarama wiki covers more technical and design details, and the Kafka Protocol Specification is referenced for protocol-level understanding.
What are similar projects?redpanda, picomq, kafgres, architect-awesome, encore, iii, kafka-ui, emqx
Creator
IBM
Size
12.5 MB
Stars
12.5K
Age
13y
Commits · 90 Days