{"id":20164157,"url":"https://github.com/dlamott/spring-boot-kafka-consumer","last_synced_at":"2026-05-06T10:37:52.145Z","repository":{"id":171037964,"uuid":"647344821","full_name":"DLaMott/spring-boot-kafka-consumer","owner":"DLaMott","description":"Spring Boot Kafka Consumer example built using Gradle. Showcases error handling, payload consumption, listener creation, junit testing, health endpoint, and more.","archived":false,"fork":false,"pushed_at":"2023-05-30T18:02:13.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T16:53:05.485Z","etag":null,"topics":["java","junit","kafka","kafka-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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DLaMott.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}},"created_at":"2023-05-30T15:19:04.000Z","updated_at":"2023-05-30T15:20:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"f52b4e44-5615-4cac-a8df-e5c01fa21a00","html_url":"https://github.com/DLaMott/spring-boot-kafka-consumer","commit_stats":null,"previous_names":["dlamott/spring-boot-kafka-consumer"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DLaMott/spring-boot-kafka-consumer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLaMott%2Fspring-boot-kafka-consumer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLaMott%2Fspring-boot-kafka-consumer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLaMott%2Fspring-boot-kafka-consumer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLaMott%2Fspring-boot-kafka-consumer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DLaMott","download_url":"https://codeload.github.com/DLaMott/spring-boot-kafka-consumer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLaMott%2Fspring-boot-kafka-consumer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32689459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["java","junit","kafka","kafka-consumer","spring","spring-boot"],"created_at":"2024-11-14T00:33:25.287Z","updated_at":"2026-05-06T10:37:52.127Z","avatar_url":"https://github.com/DLaMott.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot KafkaConsumer\n\n## Features\n\n* Spring-Boot kafka consumer showcase\n* JUnit\n* Localstack configuration\n* Gradle implementation\n\n## Don't want the code?\n\nUse my kafka consumer generator!\n*Requires Node/ NPM to be set up*\n\n```\n\u003e npm install -g yo\n\u003e npm install -g generator-spring-boot-kafka-consumer\n\u003e yo generator-spring-boot-kafka-consumer\n```\n\n## Local Development Setup:\n***Steps To test Consumer against a Producer***\n\n1. **Ensure Kafka is installed on your local machine:**\n   - *Recommended Installation Guide:* https://hevodata.com/learn/install-kafka-on-windows/\n\n2. **Start Kafka!**\n- .\\bin\\windows\\zookeeper-server-start.bat .\\config\\zookeeper.properties to start zookeeper\n- .\\bin\\windows\\kafka-server-start.bat .\\config\\server.properties to start kafka server\n\n3. **Create Topic**:\n- .\\bin\\windows\\kafka-topics.bat --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic test-topic\n\n- *View Topics*:\n  - \\.bin\\windows\\kafka-topics.bat --list --bootstrap-server localhost:9092\n\n4. **Produce Topic**:\n- .\\bin\\windows\\kafka-console-producer -broker-list localhost:9092 -topic test-topic\n\n- *Sample Payload*:\n  - {\"data\":{\"operation\":\"update\",\"eventKey\":\"JohnSmith\"},\"metadata\":{\"dataClassification\":\"public\",\"eventDateTime\":\"2023-12-21T05:05:15.65445Z\",\"eventId\":\"23434-343-3434-33\",\"topicName\":\"test-topic\", \"eventName\":\"fire-topic\", \"version\":\"v1\"}}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlamott%2Fspring-boot-kafka-consumer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlamott%2Fspring-boot-kafka-consumer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlamott%2Fspring-boot-kafka-consumer/lists"}