{"id":38964205,"url":"https://github.com/daniel-shuy/kafka-protobuf-serde","last_synced_at":"2026-01-17T16:27:43.632Z","repository":{"id":32386163,"uuid":"132429425","full_name":"daniel-shuy/kafka-protobuf-serde","owner":"daniel-shuy","description":"Serializer/Deserializer for Kafka to serialize/deserialize Protocol Buffers messages","archived":false,"fork":false,"pushed_at":"2025-12-13T08:59:16.000Z","size":648,"stargazers_count":65,"open_issues_count":29,"forks_count":15,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-12-14T23:18:32.182Z","etag":null,"topics":["deserialization","kafka","protobuf","protocol-buffers","serde","serialization"],"latest_commit_sha":null,"homepage":"","language":"Java","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/daniel-shuy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-05-07T08:19:24.000Z","updated_at":"2025-08-13T11:18:39.000Z","dependencies_parsed_at":"2023-12-01T23:22:47.107Z","dependency_job_id":"649de196-dc11-4b19-b40b-77ff2c0376cb","html_url":"https://github.com/daniel-shuy/kafka-protobuf-serde","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/daniel-shuy/kafka-protobuf-serde","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-shuy%2Fkafka-protobuf-serde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-shuy%2Fkafka-protobuf-serde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-shuy%2Fkafka-protobuf-serde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-shuy%2Fkafka-protobuf-serde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daniel-shuy","download_url":"https://codeload.github.com/daniel-shuy/kafka-protobuf-serde/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-shuy%2Fkafka-protobuf-serde/sbom","scorecard":{"id":159238,"data":{"date":"2025-08-11","repo":{"name":"github.com/daniel-shuy/kafka-protobuf-serde","commit":"c2c28af3511e76bc0366b051635014d0eacb7c8f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:18","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:17","Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 1/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/daniel-shuy/kafka-protobuf-serde/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/daniel-shuy/kafka-protobuf-serde/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/daniel-shuy/kafka-protobuf-serde/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/daniel-shuy/kafka-protobuf-serde/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/daniel-shuy/kafka-protobuf-serde/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/daniel-shuy/kafka-protobuf-serde/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:78: update your workflow using https://app.stepsecurity.io/secureworkflow/daniel-shuy/kafka-protobuf-serde/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:84: update your workflow using https://app.stepsecurity.io/secureworkflow/daniel-shuy/kafka-protobuf-serde/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:89: update your workflow using https://app.stepsecurity.io/secureworkflow/daniel-shuy/kafka-protobuf-serde/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/daniel-shuy/kafka-protobuf-serde/codeql.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/daniel-shuy/kafka-protobuf-serde/codeql.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/daniel-shuy/kafka-protobuf-serde/codeql.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/daniel-shuy/kafka-protobuf-serde/codeql.yml/develop?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/build.yml:32","Info:   0 out of  13 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'","Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"44 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-rrc9-gqf8-8rwg","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-3xq5-wjfh-ppjc","Warn: Project is vulnerable to: GHSA-6vfc-qv3f-vr6c","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-q674-xm3x-2926","Warn: Project is vulnerable to: GHSA-35q2-47q7-3pc3","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-3f95-r44v-8mrg","Warn: Project is vulnerable to: GHSA-28xr-mwxg-3qc8","Warn: Project is vulnerable to: GHSA-9p95-fxvg-qgq2","Warn: Project is vulnerable to: GHSA-9w5j-4mwv-2wj8","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc","Warn: Project is vulnerable to: GHSA-4gg5-vx3j-xwc7","Warn: Project is vulnerable to: GHSA-735f-pc8j-v9w8","Warn: Project is vulnerable to: GHSA-77rm-9x9h-xj3g","Warn: Project is vulnerable to: GHSA-g5ww-5jh7-63cx","Warn: Project is vulnerable to: GHSA-h4h5-3hr4-j3g2","Warn: Project is vulnerable to: GHSA-wrvw-hg22-4m67","Warn: Project is vulnerable to: GHSA-2x2g-32r7-p4x8","Warn: Project is vulnerable to: GHSA-3j6g-hxx5-3q26","Warn: Project is vulnerable to: GHSA-55g7-9cwv-5qfv","Warn: Project is vulnerable to: GHSA-fjpj-2g6w-x25r","Warn: Project is vulnerable to: GHSA-pqr6-cmr2-h8hf","Warn: Project is vulnerable to: GHSA-qcwq-55hx-v3vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T12:52:41.082Z","repository_id":32386163,"created_at":"2025-08-16T12:52:41.082Z","updated_at":"2025-08-16T12:52:41.082Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: 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":["deserialization","kafka","protobuf","protocol-buffers","serde","serialization"],"created_at":"2026-01-17T16:27:42.911Z","updated_at":"2026-01-17T16:27:43.620Z","avatar_url":"https://github.com/daniel-shuy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kafka-protobuf-serde\n\n| Branch  | Travis CI                                                                                                                                            | CodeFactor                                                                                                                                                                                                 | Codacy                                                                                                                                                                                                                                                                                     | Better Code Hub                                                                                                                       | Coverall                                                                                                                                                                                       |\n| ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Master  | [![Build Status](https://travis-ci.org/daniel-shuy/kafka-protobuf-serde.svg?branch=master)](https://travis-ci.org/daniel-shuy/kafka-protobuf-serde)  | [![CodeFactor](https://www.codefactor.io/repository/github/daniel-shuy/kafka-protobuf-serde/badge/master)](https://www.codefactor.io/repository/github/daniel-shuy/kafka-protobuf-serde/overview/master)   | [![Codacy Badge](https://api.codacy.com/project/badge/Grade/b20bbaee80b542edb96f068ff1b440c1?branch=master)](https://www.codacy.com/app/daniel-shuy/kafka-protobuf-serde?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=daniel-shuy/kafka-protobuf-serde\u0026utm_campaign=Badge_Grade)  | [![BCH compliance](https://bettercodehub.com/edge/badge/daniel-shuy/kafka-protobuf-serde?branch=master)](https://bettercodehub.com/)  | [![Coverage Status](https://coveralls.io/repos/github/daniel-shuy/kafka-protobuf-serde/badge.svg?branch=master)](https://coveralls.io/github/daniel-shuy/kafka-protobuf-serde?branch=master)   |\n| Develop | [![Build Status](https://travis-ci.org/daniel-shuy/kafka-protobuf-serde.svg?branch=develop)](https://travis-ci.org/daniel-shuy/kafka-protobuf-serde) | [![CodeFactor](https://www.codefactor.io/repository/github/daniel-shuy/kafka-protobuf-serde/badge/develop)](https://www.codefactor.io/repository/github/daniel-shuy/kafka-protobuf-serde/overview/develop) | [![Codacy Badge](https://api.codacy.com/project/badge/Grade/b20bbaee80b542edb96f068ff1b440c1?branch=develop)](https://www.codacy.com/app/daniel-shuy/kafka-protobuf-serde?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=daniel-shuy/kafka-protobuf-serde\u0026utm_campaign=Badge_Grade) | [![BCH compliance](https://bettercodehub.com/edge/badge/daniel-shuy/kafka-protobuf-serde?branch=develop)](https://bettercodehub.com/) | [![Coverage Status](https://coveralls.io/repos/github/daniel-shuy/kafka-protobuf-serde/badge.svg?branch=develop)](https://coveralls.io/github/daniel-shuy/kafka-protobuf-serde?branch=develop) |\n\nSerializer/Deserializer for Kafka to serialize/deserialize Protocol Buffers\nmessages\n\n## Requirements\n\n| Dependency | Version |\n| ---------- | ------- |\n| Kafka      | 2.X.X   |\n| Protobuf   | 3.X.X   |\n| Java       | 8+      |\n\n## Usage\n\nAdd the following to your Maven dependency list:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.daniel-shuy\u003c/groupId\u003e\n    \u003cartifactId\u003ekafka-protobuf-serde\u003c/artifactId\u003e\n    \u003cversion\u003e${kafka-protobuf-serde.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nOverride the `protobuf-java` dependency with the version of Protobuf you wish to use:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.google.protobuf\u003c/groupId\u003e\n    \u003cartifactId\u003eprotobuf-java\u003c/artifactId\u003e\n    \u003cversion\u003e${protobuf.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nOverride the `kafka-clients` dependency version with the version of Kafka you wish to use:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.apache.kafka\u003c/groupId\u003e\n    \u003cartifactId\u003ekafka-clients\u003c/artifactId\u003e\n    \u003cversion\u003e${kafka.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Kafka Producer\n\n```java\nProperties props = new Properties();\n// props.put(..., ...);\n\nProducer\u003cString, MyValue\u003e producer = new KafkaProducer\u003c\u003e(props,\n    new StringSerializer(),\n    new KafkaProtobufSerializer\u003c\u003e());\n\nproducer.send(new ProducerRecord\u003c\u003e(\"topic\", new MyValue()));\n```\n\n### Kafka Consumer\n\n```java\nProperties props = new Properties();\n// props.put(..., ...);\n\nConsumer\u003cString, MyValue\u003e consumer = new KafkaConsumer\u003c\u003e(props,\n    new StringDeserializer(),\n    new KafkaProtobufDeserializer\u003c\u003e(MyValue.parser()));\n\nconsumer.subscribe(Collections.singleton(\"topic\"));\nConsumerRecords\u003cString, MyValue\u003e records = consumer.poll(Duration.ofMillis(100));\n\nrecords.forEach(record -\u003e {\n    String key = record.key();\n    MyValue value = record.value();\n\n    // ...\n});\n```\n\n### Kafka Streams\n\n```java\nSerde\u003cString\u003e stringSerde = Serdes.String();\nSerde\u003cMyValue\u003e myValueSerde = new KafkaProtobufSerde\u003c\u003e(MyValue.parser());\n\nProperties config = new Properties();\n// config.put(..., ...);\n\nStreamsBuilder builder = new StreamsBuilder();\nKStream\u003cString, MyValue\u003e myValues = builder.stream(\"input_topic\", Consumed.with(stringSerde, myValueSerde));\nKStream\u003cString, MyValue\u003e filteredMyValues = myValues.filter((key, value) -\u003e {\n    // ...\n});\nfilteredMyValues.to(\"output_topic\", Produced.with(stringSerde, myValueSerde));\n\nTopology topology = builder.build();\nKafkaStreams streams = new KafkaStreams(topology, config);\nstreams.setUncaughtExceptionHandler((thread, throwable) -\u003e {\n    // ...\n});\nRuntime.getRuntime().addShutdownHook(new Thread(streams::close));\nstreams.start();\n```\n\n### Spring for Apache Kafka (spring-kafka)\n\n#### Kafka Producer\n\n```java\n@Configuration\npublic class KafkaConfig {\n    @Bean\n    public ProducerFactory\u003cString, MyValue\u003e producerFactory() {\n        Map\u003cString, Object\u003e props = new HashMap\u003c\u003e();\n        // props.put(..., ...);\n\n        return new DefaultKafkaProducerFactory\u003c\u003e(producerProps,\n                new StringSerializer(),\n                new KafkaProtobufSerializer\u003c\u003e());\n    }\n\n    @Bean\n    public KafkaTemplate\u003cString, MyValue\u003e kafkaTemplate() {\n        return new KafkaTemplate(producerFactory());\n    }\n}\n```\n\n#### Kafka Consumer\n\n```java\n@Configuration\n@EnableKafka\npublic class KafkaConfig {\n    @Bean\n    KafkaListenerContainerFactory\u003cConcurrentMessageListenerContainer\u003cString, MyValue\u003e\u003e\n            kafkaListenerContainerFactory() {\n        ConcurrentKafkaListenerContainerFactory\u003cInteger, String\u003e factory =\n            new ConcurrentKafkaListenerContainerFactory\u003c\u003e();\n        factory.setConsumerFactory(consumerFactory());\n        return factory;\n    }\n\n    @Bean\n    public ConsumerFactory\u003cString, MyValue\u003e consumerFactory() {\n        Map\u003cString, Object\u003e props = new HashMap\u003c\u003e();\n        // props.put(..., ...);\n\n        return new DefaultKafkaConsumerFactory\u003c\u003e(props,\n            new StringDeserializer(),\n            new KafkaProtobufDeserializer\u003c\u003e(MyValue.parser()));\n    }\n}\n\npublic class Listener {\n    @KafkaListener(id = \"foo\", topics = \"annotated1\")\n    public void listen1(String foo) {\n        // ...\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-shuy%2Fkafka-protobuf-serde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaniel-shuy%2Fkafka-protobuf-serde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-shuy%2Fkafka-protobuf-serde/lists"}