{"id":15349481,"url":"https://github.com/ravening/springbootapachekafka","last_synced_at":"2026-02-06T12:37:12.261Z","repository":{"id":117364699,"uuid":"190600688","full_name":"ravening/SpringBootApacheKafka","owner":"ravening","description":"Spring boot project to demonstrate multiple consumers in Apache kafka","archived":false,"fork":false,"pushed_at":"2023-03-22T21:25:32.000Z","size":57,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T19:19:41.223Z","etag":null,"topics":["apache-kafka","java-8","lombok","maven","springboot2"],"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/ravening.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":"2019-06-06T15:00:09.000Z","updated_at":"2019-06-06T15:04:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"3a604f07-a0cf-415d-aa3a-d9aebc2460f6","html_url":"https://github.com/ravening/SpringBootApacheKafka","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"ebfffe039ce985b314e3c8e22eb081d351e8d01e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ravening/SpringBootApacheKafka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravening%2FSpringBootApacheKafka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravening%2FSpringBootApacheKafka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravening%2FSpringBootApacheKafka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravening%2FSpringBootApacheKafka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ravening","download_url":"https://codeload.github.com/ravening/SpringBootApacheKafka/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravening%2FSpringBootApacheKafka/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266689258,"owners_count":23969142,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["apache-kafka","java-8","lombok","maven","springboot2"],"created_at":"2024-10-01T11:54:45.985Z","updated_at":"2026-02-06T12:37:07.239Z","avatar_url":"https://github.com/ravening.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is spring boot application to demonstrate the usage of Apache kafka\nto send and receive messages.\n\nPrerequisites to run the project\n\n    Java, maven, kafka\n\nDownload the kafka from https://www.apache.org/dyn/closer.cgi?path=/kafka/2.2.0/kafka_2.12-2.2.0.tgz\nor use any other latest version to get the packages.\nExtract the tar file to any location\n\nFollow the below steps to start the Apache Kafka server\n\n    1. Start the zookeeper server using\n\n        bin/zookeeper-server-start.sh config/zookeeper.properties\n\n    2. Once zookeeper starts successfully, start the kafka server.\n       Before starting the kafka server, make sure that the hostname and port\n       are set properly in the file config/server.properties.\n\n       advertised.host.name=localhost\n       advertised.port=9092\n       or\n       port=9092\n\n        bin/kafka-server-start.sh config/server.properties\n\n    3. Once kafka server runs successfully, start the consumer to read the messages\n\n        bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic user_names --from-beginning\n\n       Here \"user_names\" is the topic name I am using to listen on. You can use any name you want\n\n    4. Once the initial setup is done, clone this repository to the local folder\n\n    5. Build the packages using the command\n \n        mvn clean install\n\n    6. If everything is successfull, start the application using\n\n        java -jar target/kafka-demo-0.0.1-SNAPSHOT.jar\n\n    7. As soon as the project runs, you should see messages being sent and received\n\n    8. You can also navigate to http://localhost:9000/kafka/publish/\u003csome message\u003e to send\n       message from the producer and you can see the same message being received by consumer\n\n\nReference materials:\n\nhttps://github.com/TechPrimers/spring-boot-kafka-producer-example\n\nhttps://dzone.com/articles/magic-of-kafka-with-spring-boot\n\nhttps://medium.com/@contactsunny/simple-apache-kafka-producer-and-consumer-using-spring-boot-41be672f4e2b\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravening%2Fspringbootapachekafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fravening%2Fspringbootapachekafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravening%2Fspringbootapachekafka/lists"}