{"id":22725364,"url":"https://github.com/ovotech/kafka-clj-utils","last_synced_at":"2025-04-13T20:29:58.671Z","repository":{"id":54496979,"uuid":"149264801","full_name":"ovotech/kafka-clj-utils","owner":"ovotech","description":"Clojure utilities for Kafka","archived":false,"fork":false,"pushed_at":"2021-02-15T14:26:59.000Z","size":44,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-27T10:51:22.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ovotech.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":"2018-09-18T09:44:55.000Z","updated_at":"2021-02-15T14:27:02.000Z","dependencies_parsed_at":"2022-08-13T17:50:27.871Z","dependency_job_id":null,"html_url":"https://github.com/ovotech/kafka-clj-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovotech%2Fkafka-clj-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovotech%2Fkafka-clj-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovotech%2Fkafka-clj-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovotech%2Fkafka-clj-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ovotech","download_url":"https://codeload.github.com/ovotech/kafka-clj-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248461688,"owners_count":21107715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-10T16:09:27.098Z","updated_at":"2025-04-13T20:29:58.651Z","avatar_url":"https://github.com/ovotech.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kafka-clj-utils [![CircleCI](https://circleci.com/gh/ovotech/kafka-clj-utils/tree/master.svg?style=svg)](https://circleci.com/gh/ovotech/kafka-clj-utils/tree/master)\n\nA number of utilities for dealing with Kafka + Avro Schema Registry.\n\n## Usage\n\n[![Clojars\nProject](https://img.shields.io/clojars/v/ovotech/kafka-clj-utils.svg)](https://clojars.org/ovotech/kafka-clj-utils)\n\n### Avro Bundle Producer\n\nMultiple Avro encoded messages can be published to Kafka using\n`kafka-clj-utils.producers/publish-avro-bundle`\n\n```clojure\n\n(require '[kafka-clj-utils.producers :as kp])\n\n(let [config     {:kafka.serde/config {:schema-registry/base-url \"http://localhost:8081\"}\n                  :kafka/config       {:bootstrap.servers \"127.0.0.1:9092\"}}\n      k-producer (kp/-\u003eproducer config)\n      bundle     {:avro-schema {:type   :record\n                                :name   \"Greeting\"\n                                :fields [{:name \"greeting\"\n                                          :type \"string\"}]}\n                  :topic-name  \"my-topic\"\n                  :records     [{:greeting \"hi\"}\n                                {:greeting \"hola\"}\n                                {:greeting \"bundi`\"}]}]\n  (kp/publish-avro-bundle k-producer bundle))\n```\n\n### Healthchecks\n\nTwo healthcheck functions are provided to confirm functionality of components:\n\n* kafka - `kafka-clj-utils.healthcheck` checks connectivity to Kafka by listing\n  topics\n* schema-registry - `kafka-clj-utils.schema-registry` ensure connectivity to an\n  Avro Schema Registry by retrieving the registry's config\n\n### Integrant Keys\n\nA number of [Integrant](https://github.com/weavejester/integrant) `init-key`\nmultimethods are exposed to make including these utilities into an Integrant app\neasier.\n\nAll of the following keys are exposed with `pre-init-spec`s:\n\n* `:kafka-clj-utils.healthcheck/healthcheck`\n* `:kafka-clj-utils.producers/bundle-publisher`\n* `:kafka-clj-utils.schema-registry/healthcheck`\n\n## License\n\nCopyright © 2018 OVO Energy Ltd.\n\nDistributed under the Eclipse Public License either version 1.0 or (at your\noption) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovotech%2Fkafka-clj-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovotech%2Fkafka-clj-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovotech%2Fkafka-clj-utils/lists"}