{"id":15129835,"url":"https://github.com/takeshiyoshikawa/message-exchange-kafka-java","last_synced_at":"2026-01-31T00:45:43.559Z","repository":{"id":257070830,"uuid":"857246121","full_name":"TakeshiYoshikawa/message-exchange-kafka-java","owner":"TakeshiYoshikawa","description":"Repository focused to explain and shows how Kafka distributed event streaming architecture works.","archived":false,"fork":false,"pushed_at":"2024-09-14T06:27:43.000Z","size":538,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T19:19:00.220Z","etag":null,"topics":["docker-compose","event-streaming","java","kafka"],"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/TakeshiYoshikawa.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-09-14T06:23:43.000Z","updated_at":"2024-09-14T06:28:48.000Z","dependencies_parsed_at":"2024-09-14T18:21:56.216Z","dependency_job_id":null,"html_url":"https://github.com/TakeshiYoshikawa/message-exchange-kafka-java","commit_stats":null,"previous_names":["takeshiyoshikawa/message-exchange-kafka-java"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TakeshiYoshikawa%2Fmessage-exchange-kafka-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TakeshiYoshikawa%2Fmessage-exchange-kafka-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TakeshiYoshikawa%2Fmessage-exchange-kafka-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TakeshiYoshikawa%2Fmessage-exchange-kafka-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TakeshiYoshikawa","download_url":"https://codeload.github.com/TakeshiYoshikawa/message-exchange-kafka-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247386368,"owners_count":20930631,"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","event-streaming","java","kafka"],"created_at":"2024-09-26T02:21:13.049Z","updated_at":"2026-01-31T00:45:43.509Z","avatar_url":"https://github.com/TakeshiYoshikawa.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kafka\r\n\r\n## Definition\r\nApache Kafka is an open-source distributed event streaming platform designed for high-throughput, low-latency data processing. It serves as a unified platform for handling real-time data feeds.\r\n\r\n### Some Features\r\n- **Event Streaming**: Kafka allows applications to publish and subscribe data to stream of records, storing them and process afterwards;\r\n- **High Throughput**: Kafka can handle large volumes of data with least possible delay, making it suitable for real-time data processing;\r\n- **Scalability**: Kafka scales horizontally by adding brokers to the cluster, handling high volumes of data without trading off its performance;\r\n- **Reliability**: It stores data ensuring that messages won't be lost even in failure scenarios. The data redundancy across multiple brokers provides high availability.\r\n\r\n### Diagram\r\nThe diagram below shows how producers send messages to the Kafka cluster, which stores and distributes them to consumers for processing. This architecture is commonly used in real-time data processing, event-driven systems, and other applications where data needs to be distributed and processed efficiently. The major components in the diagram includes:\r\n- **Producers**: Applications that publish messages to Kafka topics and generate messages;\r\n- **Consumers**: Applications that subscribe to topics and process the published messages from Producers;\r\n- **Apache Kafka Cluster**: Distributed system queue that stores and manage messages. It contains multiple brokers that work together to provide reliability, throughput and scalability. \r\n\r\n![alt text](docs/img/diagram.png \"Kafka Diagram\")\r\n\r\n## Build\r\nFirstly, ensure you have Docker installed and running.\r\n\r\n### For Windows Users\r\nKafka installation is a little bit tricky, follow [these steps](https://medium.com/@sumanthshastry/install-kafka-zookeeper-using-docker-container-in-windows-7abbddbde0be) accordingly to enable kafka binaries.\r\n\r\n### Initialize docker-compose\r\n`docker-compose up -d --build`\r\n\r\n### Init kafka-console-consumer\r\n1. Open CMD\r\n2. Run \r\n```\r\nkafka-console-consumer.bat --bootstrap-server localhost:9092 --topic \u003ctopic name\u003e --from-beginning\r\n```\r\n**For example**: --topic click-events\r\n\r\n## Demonstration\r\nLocal test using a REST client sending a pair of strings to a specific topic as a producer and Kafka-Console as consumer.\r\n![alt text](docs/img/demo.png \"demo\")","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakeshiyoshikawa%2Fmessage-exchange-kafka-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakeshiyoshikawa%2Fmessage-exchange-kafka-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakeshiyoshikawa%2Fmessage-exchange-kafka-java/lists"}