{"id":19390138,"url":"https://github.com/bpstelios10/kafka-impl","last_synced_at":"2026-05-06T09:43:28.979Z","repository":{"id":240514640,"uuid":"802036949","full_name":"bpstelios10/kafka-impl","owner":"bpstelios10","description":"This is an implementation of a spring web mvc app that produces, consumes and streams simple Kafka Messages, when SSL authentication is involved.","archived":false,"fork":false,"pushed_at":"2024-11-04T18:28:02.000Z","size":153,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T09:37:30.047Z","etag":null,"topics":["docker-compose","helm","kafka-clients","kafka-cluster","kafka-streams","kubernetes","spring-web-mvc","wurstmeister","zookeeper"],"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/bpstelios10.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-05-17T11:54:17.000Z","updated_at":"2024-11-04T18:28:07.000Z","dependencies_parsed_at":"2025-01-07T09:35:13.016Z","dependency_job_id":"7f92305f-d809-4712-95e9-25ee4c42f477","html_url":"https://github.com/bpstelios10/kafka-impl","commit_stats":null,"previous_names":["bpstelios10/kafka-impl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpstelios10%2Fkafka-impl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpstelios10%2Fkafka-impl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpstelios10%2Fkafka-impl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpstelios10%2Fkafka-impl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bpstelios10","download_url":"https://codeload.github.com/bpstelios10/kafka-impl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240549430,"owners_count":19819137,"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":["docker-compose","helm","kafka-clients","kafka-cluster","kafka-streams","kubernetes","spring-web-mvc","wurstmeister","zookeeper"],"created_at":"2024-11-10T10:19:06.726Z","updated_at":"2026-05-06T09:43:23.951Z","avatar_url":"https://github.com/bpstelios10.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Web application interacting with KAFKA\n\nThis is an implementation of a spring web mvc app that produces, consumes and streams simple Kafka Messages, when SSL\nauthentication is involved.\n\nAlso, containers were added since in today's world almost everything lives in containers.\nSo, a Dockerfile with security and following docker best practises for java applications, is provided.\n\n## Environments\n\nThere are 3 environments available, to test the connectivity of spring application with kafka:\n\n1) Local (is now done using integration junit tests)\n2) Docker-compose\n3) Kubernetes with Helm (not tested yet)\n\n### Local\n\nIn order to test the functionality locally, integration unit tests are provided, using JUnit. They can be found\nin [KafkaServiceIntegrationTest](src/test/java/com/all4football/services/KafkaServiceIntegrationTest.java)\nNote that the kafka cluster has to be set up manually. One easy way to do it is by using docker-compose, without the\nkafka-producer service. Or else, the user can manually set it up.\n\n### Docker-compose\n\nDocker-compose is set up, to make life easier. It provides a working cluster of 3 zookeepers and 2 kafka brokers. The\nservice is also set to use the brokers from docker-compose.\nNote: The test kafka certs are copied in the docker filesystem using docker-compose configuration, rather than doing it\nin Dockerfile\n\n```shell\n./gradlew clean build -x test\ndocker-compose up --build\n```\n\n### K8s with Helm\n\nFor K8s environments, we use minikube setup to test. Also,\na [custom helm-plugin](https://github.com/bpstelios10/helm-plugin) that provides templates needed.\nIn [build.gradle](build.gradle) you can find tasks to publish the images to a docker repo, so that are available for\nk8s to download. You need to configure your own repo, so that you have access. Also, tasks to interact with k8s using\nHelm.\nYou can find more info regarding using minikube with helm and how to deploy the current services in [the guide provided](K8S_WITH_HELM_GUIDE.md).\n\n## API\n\nList of requests to use for testing (can be simply used on browsers or any rest-client):\n\n```\nhttp://localhost:8080/kafka/kafka-producer/produce-messages\nhttp://localhost:8080/kafka/kafka-consumer/consume-messages\nhttp://localhost:8080/kafka/kafka-stream/process-messages\nhttp://localhost:8080/kafka/kafka-consumer/consume-streamed-messages\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpstelios10%2Fkafka-impl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpstelios10%2Fkafka-impl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpstelios10%2Fkafka-impl/lists"}