{"id":41999745,"url":"https://github.com/h12w/kpax","last_synced_at":"2026-01-26T01:14:32.791Z","repository":{"id":35300697,"uuid":"39561912","full_name":"h12w/kpax","owner":"h12w","description":"A modular \u0026 idiomatic Kafka client in Go","archived":false,"fork":false,"pushed_at":"2018-05-05T16:19:20.000Z","size":387,"stargazers_count":21,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-19T02:05:18.544Z","etag":null,"topics":["go","golang","golang-package","golang-tools","kafka"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/h12w.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-23T10:48:49.000Z","updated_at":"2019-12-04T22:18:48.000Z","dependencies_parsed_at":"2022-09-03T08:32:08.218Z","dependency_job_id":null,"html_url":"https://github.com/h12w/kpax","commit_stats":null,"previous_names":["h12w/kafka"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/h12w/kpax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h12w%2Fkpax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h12w%2Fkpax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h12w%2Fkpax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h12w%2Fkpax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h12w","download_url":"https://codeload.github.com/h12w/kpax/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h12w%2Fkpax/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28763299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T00:37:26.264Z","status":"ssl_error","status_checked_at":"2026-01-26T00:37:25.959Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","golang-package","golang-tools","kafka"],"created_at":"2026-01-26T01:14:32.133Z","updated_at":"2026-01-26T01:14:32.775Z","avatar_url":"https://github.com/h12w.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"kpax: a modular \u0026 idiomatic Kafka client in Go\n==============================================\n\n[![GoDoc](https://godoc.org/h12.io/kpax?status.svg)](https://godoc.org/h12.io/kpax)\n\nInstall\n-------\n\n```\ngo get -u h12.io/kpax.v1\n```\n\n### Compatibility\n\nh12.io/kpax.v1 is compatible with Kafka Server 0.8.2.\n\nDesign\n------\n\nThe client is built on top of Kafka Wire Protocol (i.e. low-level API). The protocol related types \u0026 marshal/unmarshal functions are automatically generated by [wipro](https://github.com/h12w/wipro) from [the HTML spec](https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol)).\n\n`(-)` means to be done.\n\n### Sub packages\n\n* **model** is an abstraction model for request, response, broker and cluster\n* **broker** is a lazy, asynchronous and recoverable round tripper that talks to a single Kafka broker\n* **cluster** is a metadata manager that talks to a Kafka cluster\n* **proto** contains both low level API and a \"middle\" level facade\n* **producer**: fault tolerant high-level producer (batching and partitioning strategy)\n* **consumer**: fault tolerant high-level consumer (consumer group and offset commit)\n* **log**: replaceable global logger\n* **cmd**\n    - **kpax**: command line tool to help with Kafka programming\n\n### Error Handling\n\n* broker\n  + fail fast: timeout returns error immediately\n  + release resources carefully\n  + reconnect when requested next time\n* client\n  + metadata reload lazily (only when a leader/coordinator cannot be found in cache)\n  + leader/coordinator should be deleted on error\n* producer\n  + fail over to another partition\n  + failed partition will be retried again after a period of time\n  + partition expand (-)\n* consumer\n  + just loop \u0026 wait on error\n  + partition expand (-)\n* graceful shutdown (-)\n\n### Efficiency\n\n* efficiency\n  + batching\n    - consumer response\n    - consumer request (-)\n    - producer (-)\n  + decompression\n    - snappy\n    - gzip (-)\n  + compression\n    - snappy (-)\n    - gzip (-)\n\nAuthor\n------\n\n[Hǎiliàng Wáng](https://github.com/h12w)\n\nContributors\n------------\n\n* [Tao Huang](https://github.com/AnotherGoogleFans)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh12w%2Fkpax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh12w%2Fkpax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh12w%2Fkpax/lists"}