{"id":3526975,"name":"github.com/influxdata/sarama","ecosystem":"go","description":"Package sarama is a pure Go client library for dealing with Apache Kafka (versions 0.8 and later). It includes a high-level\nAPI for easily producing and consuming messages, and a low-level API for controlling bytes on the wire when the high-level\nAPI is insufficient. Usage examples for the high-level APIs are provided inline with their full documentation.\n\nTo produce messages, use either the AsyncProducer or the SyncProducer. The AsyncProducer accepts messages on a channel\nand produces them asynchronously in the background as efficiently as possible; it is preferred in most cases.\nThe SyncProducer provides a method which will block until Kafka acknowledges the message as produced. This can be\nuseful but comes with two caveats: it will generally be less efficient, and the actual durability guarantees\ndepend on the configured value of `Producer.RequiredAcks`. There are configurations where a message acknowledged by the\nSyncProducer can still sometimes be lost.\n\nTo consume messages, use the Consumer. Note that Sarama's Consumer implementation does not currently support automatic\nconsumer-group rebalancing and offset tracking. For Zookeeper-based tracking (Kafka 0.8.2 and earlier), the\nhttps://github.com/wvanbergen/kafka library builds on Sarama to add this support. For Kafka-based tracking (Kafka 0.9\nand later), the https://github.com/bsm/sarama-cluster library builds on Sarama to add this support.\n\nFor lower-level needs, the Broker and Request/Response objects permit precise control over each connection\nand message sent on the wire; the Client provides higher-level metadata management that is shared between\nthe producers and the consumer. The Request/Response objects and properties are mostly undocumented, as they line up\nexactly with the protocol fields documented by Kafka at\nhttps://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol\n\nMetrics are exposed through https://github.com/rcrowley/go-metrics library in a local registry.\n\nBroker related metrics:\n\nNote that we do not gather specific metrics for seed brokers but they are part of the \"all brokers\" metrics.\n\nProducer related metrics:","homepage":"https://github.com/influxdata/sarama","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/influxdata/sarama","keywords_array":[],"namespace":"github.com/influxdata","versions_count":32,"first_release_published_at":"2015-03-17T17:48:54.000Z","latest_release_published_at":"2019-07-22T19:21:12.000Z","latest_release_number":"v1.23.1","last_synced_at":"2026-07-22T01:04:56.874Z","created_at":"2022-04-10T22:46:24.576Z","updated_at":"2026-08-31T19:08:51.408Z","registry_url":"https://pkg.go.dev/github.com/influxdata/sarama","install_command":"go get github.com/influxdata/sarama","documentation_url":"https://pkg.go.dev/github.com/influxdata/sarama#section-documentation","metadata":{},"repo_metadata":{},"repo_metadata_updated_at":"2026-08-31T19:08:51.407Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":9.345852080216646,"dependent_packages_count":6.999148183520997,"stargazers_count":null,"forks_count":null,"average":8.172500131868823},"purl":"pkg:golang/github.com/influxdata/sarama","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/influxdata/sarama","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/influxdata/sarama","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/influxdata/sarama/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Finfluxdata%2Fsarama/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Finfluxdata%2Fsarama/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Finfluxdata%2Fsarama/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Finfluxdata%2Fsarama/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Finfluxdata%2Fsarama/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Finfluxdata%2Fsarama/codemeta","maintainers":[]}