{"id":3705536,"name":"github.com/Shopify/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/Shopify/Sarama","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/Shopify/Sarama","keywords_array":[],"namespace":"github.com/Shopify","versions_count":83,"first_release_published_at":"2015-03-17T17:48:54.000Z","latest_release_published_at":"2026-02-27T08:59:42.000Z","latest_release_number":"v1.47.0","last_synced_at":"2026-06-10T13:00:59.559Z","created_at":"2022-04-11T12:14:13.521Z","updated_at":"2026-06-10T13:00:59.559Z","registry_url":"https://pkg.go.dev/github.com/Shopify/Sarama","install_command":"go get github.com/Shopify/Sarama","documentation_url":"https://pkg.go.dev/github.com/Shopify/Sarama#section-documentation","metadata":{},"repo_metadata":{"uuid":"11206255","full_name":"Shopify/sarama","owner":"Shopify","description":"Sarama is a Go library for Apache Kafka.","archived":false,"fork":false,"pushed_at":"2023-03-10T17:32:55.000Z","size":10213,"stargazers_count":9775,"open_issues_count":316,"forks_count":1632,"subscribers_count":671,"default_branch":"main","last_synced_at":"2023-03-16T20:01:09.473Z","etag":null,"topics":["go","kafka","kafka-client"],"latest_commit_sha":null,"homepage":"https://shopify.github.io/sarama","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"facebook/pop","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"logo_url":null,"metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-05T18:52:38.000Z","updated_at":"2023-03-16T18:11:57.000Z","dependencies_parsed_at":"2023-02-12T05:02:14.270Z","dependency_job_id":null,"html_url":"https://github.com/Shopify/sarama","commit_stats":null,"repository_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fsarama","tags_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fsarama/tags","manifests_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fsarama/manifests","owner_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shopify","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":108921946,"host_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names"}},"repo_metadata_updated_at":"2023-03-21T18:58:41.269Z","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/%21shopify/%21sarama","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/Shopify/Sarama","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/Shopify/Sarama","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/Shopify/Sarama/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-05-19T05:51:49.404Z","issues_count":65,"pull_requests_count":36,"avg_time_to_close_issue":3776988.7,"avg_time_to_close_pull_request":2864783.2083333335,"issues_closed_count":20,"pull_requests_closed_count":24,"pull_request_authors_count":24,"issue_authors_count":59,"avg_comments_per_issue":2.7846153846153845,"avg_comments_per_pull_request":2.0277777777777777,"merged_pull_requests_count":17,"bot_issues_count":0,"bot_pull_requests_count":1,"past_year_issues_count":48,"past_year_pull_requests_count":31,"past_year_avg_time_to_close_issue":1884950.0666666667,"past_year_avg_time_to_close_pull_request":2723955.1363636362,"past_year_issues_closed_count":15,"past_year_pull_requests_closed_count":22,"past_year_pull_request_authors_count":19,"past_year_issue_authors_count":43,"past_year_avg_comments_per_issue":1.3125,"past_year_avg_comments_per_pull_request":1.064516129032258,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":1,"past_year_merged_pull_requests_count":15},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2FShopify%2FSarama/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2FShopify%2FSarama/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2FShopify%2FSarama/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2FShopify%2FSarama/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2FShopify%2FSarama/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2FShopify%2FSarama/codemeta","maintainers":[]}