{"id":36626022,"url":"https://github.com/datanerds-io/verteiler","last_synced_at":"2026-01-12T09:32:08.167Z","repository":{"id":57731929,"uuid":"72159384","full_name":"datanerds-io/verteiler","owner":"datanerds-io","description":"Meine dispatcher says there's something wrong mit deine Kabel. Java 8 BlockingQueue Kafka Consumer with automatically maintained offset.","archived":false,"fork":false,"pushed_at":"2018-08-04T05:01:43.000Z","size":33,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":10,"default_branch":"develop","last_synced_at":"2023-07-03T22:36:05.504Z","etag":null,"topics":["consumer","java","kafka","kafka-consumer"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datanerds-io.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":"2016-10-28T00:27:52.000Z","updated_at":"2017-05-06T00:47:09.000Z","dependencies_parsed_at":"2022-09-06T17:24:57.024Z","dependency_job_id":null,"html_url":"https://github.com/datanerds-io/verteiler","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"purl":"pkg:github/datanerds-io/verteiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datanerds-io%2Fverteiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datanerds-io%2Fverteiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datanerds-io%2Fverteiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datanerds-io%2Fverteiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datanerds-io","download_url":"https://codeload.github.com/datanerds-io/verteiler/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datanerds-io%2Fverteiler/sbom","scorecard":{"id":324646,"data":{"date":"2025-08-11","repo":{"name":"github.com/datanerds-io/verteiler","commit":"9e3ff4d033ad3bf6880f175ff5fa4fe7a1f841c3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"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":"Code-Review","score":4,"reason":"Found 5/11 approved changesets -- score normalized to 4","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":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":-1,"reason":"no workflows found","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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: Apache License 2.0: 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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 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"}}]},"last_synced_at":"2025-08-18T02:10:03.811Z","repository_id":57731929,"created_at":"2025-08-18T02:10:03.811Z","updated_at":"2025-08-18T02:10:03.811Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["consumer","java","kafka","kafka-consumer"],"created_at":"2026-01-12T09:32:07.927Z","updated_at":"2026-01-12T09:32:08.163Z","avatar_url":"https://github.com/datanerds-io.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://api.travis-ci.org/datanerds-io/verteiler.svg?branch=develop)](https://travis-ci.org/datanerds-io/verteiler)\n\n[![Maven Central](https://img.shields.io/maven-central/v/io.datanerds/verteiler.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.datanerds%22%20a%3A%22verteiler%22)\n\n\n# Verteiler (fɛɐˈtailɐ)\n\n\"Verteiler\" is german and translates to _distributor_. When you are using the (new) `kafka-clients` consumer introduced with v0.9.0, you will face the issue that `Consumer.poll(...)` can only be called from [one thread][1]. Verteiler leverages the kafka-client consumer implementation to distribute messages from assigned partitions to `BlockingQueue`s. Each assigned partition will relay its messages to its own internal queue. These queues have worker threads which process the message leveraging a user defined consumer. Once a message has been processed successfully its offset will be committed asynchronously after `poll(...)` has finished. This way only the offset of processed messages is committed.\n\n# How to use `verteiler`\n\n## `BlockingQueueConsumer`\n\n### Parameters\n\n`String topic`: Name of the topic you want to consume messages from.\n\n`Properties kafkaConfig`: Regular [consumer config][2]. By default `verteiler` will disable auto offset commit and set a client id when not given.\n\n`int queueSize`: Size of the internal queue, which depends on your needs.\n\n`java.util.function.Consumer\u003cV\u003e action`: The function which will handle a message.\n\n### Example\nSimple message counter:\n\n```java\nProperties props = new Properties();\nprops.setProperty(BOOTSTRAP_SERVERS_CONFIG, \"127.0.0.1:9092\");\n...\nAtomicInteger messageCounter = new AtomicInteger();\nConsumer\u003cString\u003e action = (message) -\u003e messageCounter.incrementAndGet();\n\nBlockingQueueConsumer\u003cString, String\u003e consumer = new BlockingQueueConsumer\u003c\u003e(\"my_topic\", props, 42, action);\nconsumer.start();\n```\n\nFor a full example take a look at [BlockingQueueConsumerTest][3].\n\n# Build\n`gradle build` will build the project. The integration tests will start embedded zookeeper \u0026 kafka instances.\n\n\n[1]: https://kafka.apache.org/0102/javadoc/org/apache/kafka/clients/consumer/KafkaConsumer.html#multithreaded\n\n[2]: https://kafka.apache.org/0102/javadoc/org/apache/kafka/clients/consumer/ConsumerConfig.html\n\n[3]: https://github.com/datanerds-io/verteiler/blob/develop/it-test/src/test/java/io/datanerds/verteiler/it_test/BlockingQueueConsumerTest.java\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatanerds-io%2Fverteiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatanerds-io%2Fverteiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatanerds-io%2Fverteiler/lists"}