{"id":21744162,"url":"https://github.com/hogwai/kafka-microservices","last_synced_at":"2026-04-05T21:36:17.179Z","repository":{"id":177129146,"uuid":"659934697","full_name":"Hogwai/kafka-microservices","owner":"Hogwai","description":"Microservices with Apache Kafka, Kafka Streams","archived":false,"fork":false,"pushed_at":"2023-06-29T20:21:50.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T01:41:32.106Z","etag":null,"topics":["apache-kafka","apache-zookeeper","docker","event-sourcing","java","kafka-streams","microservices","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/Hogwai.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-06-28T22:22:04.000Z","updated_at":"2023-06-29T20:26:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c3b06f6-6a60-4cca-8a59-0e8085f2d5ab","html_url":"https://github.com/Hogwai/kafka-microservices","commit_stats":null,"previous_names":["hogwai/kafka-microservices"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hogwai/kafka-microservices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hogwai%2Fkafka-microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hogwai%2Fkafka-microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hogwai%2Fkafka-microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hogwai%2Fkafka-microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hogwai","download_url":"https://codeload.github.com/Hogwai/kafka-microservices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hogwai%2Fkafka-microservices/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31451445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"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":["apache-kafka","apache-zookeeper","docker","event-sourcing","java","kafka-streams","microservices","spring-boot"],"created_at":"2024-11-26T07:10:14.135Z","updated_at":"2026-04-05T21:36:16.384Z","avatar_url":"https://github.com/Hogwai.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kafka-microservices\n\nThe project is composed of:\n-  A docker-compose running: \n    - Apache Zookeeper\n    - Apache Kafka\n    - [Kafdrop](https://github.com/obsidiandynamics/kafdrop)\n\n- 3 microservices:\n    - producer\n    - consumer-producer\n    - consumer\n\n## Prerequisites\n- Docker\n- JDK 17 and above\n- Maven\n\n## Description\n### Producer\nThe entrypoint is the producer. It has an endpoint available for orders creation.\n\n#### Payload\nHere is an example of the required payload:\n```\ncurl --location 'http://localhost:8080/order' \\\n--header 'Content-Type: application/json' \\\n--data '{\n    \"item\": \"pizza\",\n    \"amount\": \"15\",\n    \"vat\": 19.6\n}'\n```\n\n### Consumer-producer\nThis microservice listens to events emitted on the producer topic.\nIts purpose is to apply VAT on food orders, then to emit the updated order on the consumer-producer topic.\nIt uses Kafka Streams.\n\n### Consumer\nThis microservice listens to events emitted on the consumer-producer topic.\nIts purpose is to save food orders in database.\n\n\n## Installation\nClone the project on your local machine.\n\nLaunch Zookeeper, Kafka and Kafdrop:\n```\ndocker compose up\n```\n\nLaunch the microservices:\n```\nmvn spring-boot:run\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhogwai%2Fkafka-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhogwai%2Fkafka-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhogwai%2Fkafka-microservices/lists"}