{"id":53199,"library":"ibm-sarama","title":"Sarama","description":"A pure Go client library for Apache Kafka, supporting producing and consuming messages with both high-level and low-level APIs.","status":"active","version":"1.49.0","language":"go","source_language":null,"source_url":"https://github.com/IBM/sarama","tags":["kafka","messaging","producer","consumer","streaming"],"install":[{"cmd":"go get github.com/IBM/sarama","lang":"bash","label":"Install github.com/IBM/sarama"}],"dependencies":[],"imports":[{"symbol":"sarama","correct":"github.com/IBM/sarama"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/IBM/sarama\"\n)\n\nfunc main() {\n\tconsumer, err := sarama.NewConsumer([]string{\"localhost:9092\"}, nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tpartitions, _ := consumer.Partitions(\"my_topic\")\n\tfmt.Println(partitions)\n}","lang":"go","description":"List partitions for a Kafka topic using a consumer."},"warnings":[{"fix":"Set Producer.RequiredAcks to sarama.WaitForAll for maximum durability.","message":"The SyncProducer's durability guarantees depend on Producer.RequiredAcks; messages can be lost with certain configurations.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'apach':8 'api':24 'client':5 'consum':13,28 'go':4 'high':18 'high-level':17 'kafka':9,25 'level':19,23 'librari':6 'low':22 'low-level':21 'messag':14,26 'produc':11,27 'pure':3 'sarama':1 'stream':29 'support':10","created_at":"2026-06-15T07:30:40.911941+00:00","updated_at":"2026-06-15T07:30:40.911941+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/IBM/sarama","github":"https://github.com/IBM/sarama","docs":"https://pkg.go.dev/github.com/IBM/sarama#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["messaging"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}