{"id":30027171,"url":"https://github.com/cloudurable/reakt-kafka","last_synced_at":"2026-06-23T04:31:22.478Z","repository":{"id":89360103,"uuid":"90552944","full_name":"cloudurable/reakt-kafka","owner":"cloudurable","description":"Reakt Kafka library","archived":false,"fork":false,"pushed_at":"2017-05-08T00:38:31.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T10:39:12.719Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudurable.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-05-07T18:25:57.000Z","updated_at":"2017-12-27T23:52:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ae1d438-258c-4c80-b3e1-8210892265a6","html_url":"https://github.com/cloudurable/reakt-kafka","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudurable/reakt-kafka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudurable%2Freakt-kafka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudurable%2Freakt-kafka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudurable%2Freakt-kafka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudurable%2Freakt-kafka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudurable","download_url":"https://codeload.github.com/cloudurable/reakt-kafka/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudurable%2Freakt-kafka/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34675970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-08-06T12:43:08.897Z","updated_at":"2026-06-23T04:31:22.470Z","avatar_url":"https://github.com/cloudurable.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Reakt Kafka\n\nThis libray adapts [Kafka](http://cloudurable.com/kafka-training/index.html) to [Reakt promises and streams](http://advantageous.github.io/reakt/).\n\n\nReakt has promise libraries for Vert.x, Netty, Guava, and Cassandra.\n\n\n\n#### Using Promises with Kafka Producers\n```java\n\nfinal AsyncProducer\u003cLong, String\u003e producer = new AsyncProducer\u003c\u003e(createProducer());\n...\nproducer.send(TOPIC, key, value)\n    .catchError(throwable -\u003e {\n                System.err.println(\"Trouble sending record \" + throwable.getLocalizedMessage());\n                     throwable.printStackTrace(System.err);\n    })\n    .then(recordMetadata -\u003e {\n             System.out.printf(\"%d %d %s \\n\", recordMetadata.offset(),\n                recordMetadata.partition(), recordMetadata.topic());\n    }).invoke();\n\n```\n\n\n#### Using Streams with Kafka Consumers\n```java\n\n\nfinal StreamConsumer\u003cLong, String\u003e stream = StreamConsumer.subscribe(createConsumer(), TOPIC, result -\u003e {\n    result.then(consumerRecords -\u003e {\n        System.out.println(\"Got message \" + consumerRecords.count());\n        consumerRecords.forEach(record -\u003e {\n            countDownLatch.countDown();\n        });\n        result.request(1); //calls commitAsync\n    }).catchError(throwable -\u003e {\n        System.err.println(\"Trouble Getting record \" + throwable.getLocalizedMessage());\n        throwable.printStackTrace(System.err);\n        result.cancel();\n    });\n});\n\nstream.close();\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudurable%2Freakt-kafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudurable%2Freakt-kafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudurable%2Freakt-kafka/lists"}