{"id":15866363,"url":"https://github.com/squidmin/kafka-api-blueprint","last_synced_at":"2026-04-11T07:41:40.934Z","repository":{"id":244830585,"uuid":"816396488","full_name":"squidmin/kafka-api-blueprint","owner":"squidmin","description":"Reference / template for a Kafka producer-consumer mechanism","archived":false,"fork":false,"pushed_at":"2024-06-17T17:22:05.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T21:20:00.455Z","etag":null,"topics":["gradle","java","kafka","kafka-api","kafka-connect","producer-consumer","spring","spring-boot"],"latest_commit_sha":null,"homepage":"","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/squidmin.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}},"created_at":"2024-06-17T17:00:15.000Z","updated_at":"2024-06-17T17:22:09.000Z","dependencies_parsed_at":"2024-06-17T19:11:26.674Z","dependency_job_id":"c528e6e0-698e-42ec-9937-d517cce0c5fb","html_url":"https://github.com/squidmin/kafka-api-blueprint","commit_stats":null,"previous_names":["squidmin/kafka-api-blueprint"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/squidmin/kafka-api-blueprint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidmin%2Fkafka-api-blueprint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidmin%2Fkafka-api-blueprint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidmin%2Fkafka-api-blueprint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidmin%2Fkafka-api-blueprint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squidmin","download_url":"https://codeload.github.com/squidmin/kafka-api-blueprint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squidmin%2Fkafka-api-blueprint/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260124097,"owners_count":22962207,"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":["gradle","java","kafka","kafka-api","kafka-connect","producer-consumer","spring","spring-boot"],"created_at":"2024-10-05T23:20:27.977Z","updated_at":"2026-04-11T07:41:40.907Z","avatar_url":"https://github.com/squidmin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kafka-api-blueprint\n\nReference / template for a Kafka producer-consumer mechanism.\n\nSee also:\n\n- [kafka-producer-blueprint](https://github.com/squidmin/kafka-api-blueprint)\n- [kafka-consumer-blueprint](https://github.com/squidmin/kafka-consumer-blueprint)\n\n## Build the JAR files\n\n```bash\ncd ../kafka-producer-blueprint\n./gradlew clean build\n```\n\n```bash\ncd ../kafka-consumer-blueprint\n./gradlew clean build\n```\n\n```bash\ncd ../kafka-api-blueprint\n./gradlew clean build\n```\n\n## Start the services\n\n```bash\ndocker-compose up --build\n```\n\n## Verify Kafka Installation\n\n### Create a Kafka topic\n\n```bash\ndocker-compose exec kafka kafka-topics.sh --create --topic another-test-topic --bootstrap-server kafka:9092 --partitions 1 --replication-factor 1\n```\n\n### List Kafka topics\n\n```bash\ndocker-compose exec kafka kafka-topics.sh --list --bootstrap-server kafka:9092\n```\n\n## Test the Kafka integration\n\n- Use Postman or a browser to access the API endpoint:\n\n  ```\n  http://localhost:8083/publish?message=HelloKafka\n  ```\n  \n- The message will be forwarded to the producer application, which will then publish it to Kafka.\n\n## Stop and remove all containers\n\n```bash\ndocker-compose down\n```\n\n## Remove existing containers, volumes, and images\n\n```bash\ndocker-compose down -v --rmi all\n```\n\n---\n\n## Reference Documentation\n\n* [Official Gradle documentation](https://docs.gradle.org)\n* [Spring Boot Gradle Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/3.3.0/gradle-plugin/reference/html/)\n* [Spring Configuration Processor](https://docs.spring.io/spring-boot/docs/3.3.0/reference/htmlsingle/index.html#appendix.configuration-metadata.annotation-processor)\n* [Spring Boot DevTools](https://docs.spring.io/spring-boot/docs/3.3.0/reference/htmlsingle/index.html#using.devtools)\n* [Spring Integration](https://docs.spring.io/spring-boot/docs/3.3.0/reference/htmlsingle/index.html#messaging.spring-integration)\n* [Spring for Apache Kafka](https://docs.spring.io/spring-boot/docs/3.3.0/reference/htmlsingle/index.html#messaging.kafka)\n\n## Additional Links\n\nThese additional references should also help you:\n\n* [Gradle Build Scans – insights for your project's build](https://scans.gradle.com#gradle)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquidmin%2Fkafka-api-blueprint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquidmin%2Fkafka-api-blueprint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquidmin%2Fkafka-api-blueprint/lists"}