# IBM/sarama

Sarama is a Go library for Apache Kafka.

Repository: https://github.com/IBM/sarama
Canonical: https://ross.abutalabs.com/products/sarama
Language: Go
License: MIT
License Family: permissive
Topics: kafka, kafka-client, go
Last push: 2026-08-25T21:46:41+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 4807, "days_push": 8, "days_rel": 10, "gap_med": 16, "n_releases_24m": 20}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12510, forks 1860 (observed 2026-08-28T04:10:59.248633+00:00)

## What it is
Sarama is an MIT-licensed Go client library for Apache Kafka, providing pure-Go implementations of Kafka producers, consumers, and administrative operations. It is actively maintained by IBM with a documented compatibility guarantee for the two latest stable releases of Kafka and Go.

## Use cases
- produce and consume messages from kafka in go
- build a kafka consumer group application in go
- stream events to kafka from a go service
- manage kafka topics programmatically
- test kafka integration code with mocks
- diagnose kafka clusters with cli tools

## When to choose
- you need a pure-Go Kafka client with no cgo dependencies
- you want a mature, widely adopted Kafka library with strong API stability guarantees
- you need consumer group support, compression, and TLS/SASL authentication in Go

## When to avoid
- you prefer a librdkafka-based client with lower latency and C performance
- you need the very latest Kafka protocol features on day one
- you are not working in the Go ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: message-queue, serialization, developer-tools
- domain: microservices, backend, developer-tools
- platform: go, windows, cross-platform
- tags: kafka, kafka-client, event-streaming, producer-consumer, messaging, linux, macos

## Member repositories
- IBM/sarama (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:59.248633+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:13:59.553672+00:00, confidence not recorded.
  - readme: https://github.com/IBM/sarama (fetched 2026-08-28T04:10:59.248633+00:00, sha 98cc9faa035d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
