OSS TanbouSign in with GitHub

cover Kafka producers, consumer groups, administration, and transactions from Go

About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
12,523
Primary language
Go
License
MIT
Repository last updated
Oct 5, 2026
On this page

Overview

Sarama is a Go client library for Apache Kafka. It provides producers, consumers, consumer groups, cluster administration, and protocol request/response support for a broad Kafka feature surface.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Key features

Implement Kafka message flows with producers and consumer groups

Synchronous and asynchronous producers plus consumer groups support publishing and consuming with Kafka partitioning, offsets, and rebalance behavior.

Sources: [2]

Use administration, idempotent production, and transactional Kafka features

Sarama covers a broad Kafka protocol surface, including cluster administration and producer idempotency or transactions beyond basic produce and consume operations.

Sources: [2][4]

Best fit

Fits Go backends and streaming workloads that need detailed Kafka control

It suits event-driven services that want producer delivery semantics, consumer groups, administration, and Kafka-specific configuration in one library.

Sources: [2]

Before adoption

v1.61.1 requires Go 1.26; regression-test transactions, idempotency, and rebalances

The v1.61.1 go.mod declares Go 1.26, and the README states a two-latest-stable-releases plus two-month grace compatibility policy for Kafka and Go. Version 1.61.1 contains numerous correctness fixes in transaction management, idempotent batches, cooperative rejoin, and broker lifecycle races, so exactly-once and rebalance paths deserve focused regression coverage.

Sources: [3][2][4]

Official sources

  1. [1]IBM/sarama — GitHub repository(2026-10-06)
  2. [2]Sarama v1.61.1 — README(2026-10-06)
  3. [3]Sarama v1.61.1 — go.mod(2026-10-06)
  4. [4]Sarama v1.61.1 release(2026-10-06)
  5. [5]Sarama MIT license(2026-10-06)
Supplemental curator note

Sarama exposes a broad Kafka protocol surface. Idempotent and transactional producers, consumer-group rebalances, and Kafka protocol-version configuration directly affect correctness, so test them explicitly against the deployed broker version.

Try it in 3 steps

  1. 1

    Get the source

    git clone --depth 1 https://github.com/IBM/sarama.git
  2. 2

    Enter the repository

    cd sarama
  3. 3

    Check the official steps

    Continue with the commands in the README Installation, Quick Start, or Getting Started section.

    find . -maxdepth 1 -iname 'README*' -exec sed -n '1,220p' {} \; -quit
Check the official README

Growth

Growth trends · Last 30 days

12,523 Stars

Trend data is still being collected.

Development activity

Last 90 days · weekly

Commits (last 30 days)
77
Open PRs
37

Development activity is still being collected.

Built with

Categories and tags

GitHub data

GitHub dataView detailed GitHub data

GitHub Topics

  • kafka
  • kafka-client
  • go
Stars
12,523
Forks
1,872
Watchers
603
Open issues
15
Contributors
281
Owner type
Organization
Primary language
Go
License
MIT
Repository last updated
Oct 5, 2026
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.

After reading this page, do you know what to do next?