{"id":19477288,"url":"https://github.com/nikkhvat/kafka-golang-example","last_synced_at":"2025-04-15T09:12:56.294Z","repository":{"id":197429988,"uuid":"698189825","full_name":"nikkhvat/kafka-golang-example","owner":"nikkhvat","description":"kafka golang simple example","archived":false,"fork":false,"pushed_at":"2023-10-03T04:14:41.000Z","size":132,"stargazers_count":15,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-15T09:12:37.182Z","etag":null,"topics":["docker","docker-compose","golang","kafka"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/nikkhvat.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":"2023-09-29T11:07:36.000Z","updated_at":"2025-04-02T01:48:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e67e34a-bd93-4325-a7b1-be84d8dd2c3f","html_url":"https://github.com/nikkhvat/kafka-golang-example","commit_stats":null,"previous_names":["nikkhvat/kafka-golang-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkhvat%2Fkafka-golang-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkhvat%2Fkafka-golang-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkhvat%2Fkafka-golang-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkhvat%2Fkafka-golang-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikkhvat","download_url":"https://codeload.github.com/nikkhvat/kafka-golang-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249040129,"owners_count":21202823,"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","docker-compose","golang","kafka"],"created_at":"2024-11-10T19:44:16.686Z","updated_at":"2025-04-15T09:12:56.275Z","avatar_url":"https://github.com/nikkhvat.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang Kafka Docker Microservices Simple Example\n\nThis repository demonstrates a simple microservices architecture using Kafka, Golang, and Docker. The primary goal is to illustrate a basic setup necessary for inter-service communication through Kafka messaging queue.\n\n## Overview\n\nIn this example:\n\n- A client sends an HTTP request to the first microservice (API Gateway) using a tool like Postman.\n- The API Gateway forwards the request to Kafka, which is then picked up by the second microservice.\n- The second microservice processes the request and sends the response back to Kafka.\n- The API Gateway retrieves the response from Kafka and sends it back to the client.\n\n\u003e Note: It's essential to have a mechanism for correlating requests and responses to ensure that each response is sent back to the correct client, especially when handling multiple concurrent requests.\n\n\n![scheme](./docs/scheme.jpg)\n\n## Getting Started\n\n### Prerequisites\n\n- Docker and Docker-Compose\n\n\n### Running the Project\n\n1. Clone the repository to your local machine:\n\n```sh\ngit clone git@github.com:nikkhvat/kafka-golang-example.git\ncd kafka-golang-example\n```\n\n2. Build the Docker containers:\n\n```sh\ndocker-compose build\n```\n\n3. Start the services:\n\n```sh\ndocker-compose up\n```\n\nNow, the API Gateway service is running on http://localhost:8080, and you can send an HTTP GET request to /ping endpoint to trigger the communication between the microservices.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikkhvat%2Fkafka-golang-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikkhvat%2Fkafka-golang-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikkhvat%2Fkafka-golang-example/lists"}