{"id":22958368,"url":"https://github.com/rads/kafka.transit","last_synced_at":"2025-08-13T04:33:23.440Z","repository":{"id":62434375,"uuid":"92140122","full_name":"rads/kafka.transit","owner":"rads","description":"🚄 Tools for using Transit with Kafka","archived":false,"fork":false,"pushed_at":"2017-06-02T03:10:07.000Z","size":15,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-28T18:10:21.400Z","etag":null,"topics":["clojure","kafka","transit"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rads.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-23T06:59:34.000Z","updated_at":"2021-03-01T19:37:16.000Z","dependencies_parsed_at":"2022-11-01T21:02:15.827Z","dependency_job_id":null,"html_url":"https://github.com/rads/kafka.transit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rads%2Fkafka.transit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rads%2Fkafka.transit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rads%2Fkafka.transit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rads%2Fkafka.transit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rads","download_url":"https://codeload.github.com/rads/kafka.transit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229737414,"owners_count":18116456,"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":["clojure","kafka","transit"],"created_at":"2024-12-14T17:39:24.804Z","updated_at":"2024-12-14T17:39:26.259Z","avatar_url":"https://github.com/rads.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kafka.transit\n\nTools for using Transit with Kafka.\n\n\u003c!-- toc --\u003e\n\n- [Library](#library)\n  * [Installation](#installation)\n  * [Usage](#usage)\n- [Command-Line Tools](#command-line-tools)\n  * [Installation](#installation-1)\n  * [Usage](#usage-1)\n\n\u003c!-- tocstop --\u003e\n\n## Library\n\n### Installation\n\nTo use the Transit serde, add this library as a dependency to your project:\n\n```clojure\n[rads/kafka.transit \"0.3.0\"]\n```\n\n### Usage\n\n```clojure\n(ns kafka-transit-example\n (:import\n   (java.util Properties)\n   (org.apache.kafka.streams StreamsConfig KafkaStreams)\n   (org.apache.kafka.streams.kstream KStreamBuilder)\n   (rads.kafka.transit MsgpackSerde)))\n\n(def props\n  (doto (Properties.)\n    (.put StreamsConfig/KEY_SERDE_CLASS_CONFIG MsgpackSerde)\n    (.put StreamsConfig/VALUE_SERDE_CLASS_CONFIG MsgpackSerde)))\n\n(def builder (KStreamBuilder.))\n\n(.start (KafkaStreams. builder props))\n```\n\n## Command-Line Tools\n\n### Installation\n\nTo use the command-line tools clone the Git repository to your local machine:\n\n```shell\ngit clone git@github.com:rads/kafka.transit.git ~/lib/kafka.transit\ncd ~/lib/kafka.transit\n```\n\nNow the scripts are available at `bin/`. For convenience you can create symlinks to these scripts or add `bin/` to your `$PATH`.\n\n### Usage\n\nThese scripts are just like the default console producer and consumers except they use Transit for serialization instead of Avro or JSON.\n\n```shell\n\n# Produce to a Transit topic\nbin/kafka-transit-console-producer --zookeeper localhost:2181 --topic transit-test\n\n# Consume from a Transit topic\nbin/kafka-transit-console-consumer --bootstrap-server localhost:9092 --topic transit-test --from-beginning\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frads%2Fkafka.transit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frads%2Fkafka.transit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frads%2Fkafka.transit/lists"}