{"id":15035398,"url":"https://github.com/cedrickchee/kafka-eventsourcing-restapi","last_synced_at":"2026-03-15T08:21:14.387Z","repository":{"id":138118319,"uuid":"261253596","full_name":"cedrickchee/kafka-eventsourcing-restapi","owner":"cedrickchee","description":"REST API service using Apache Kafka for event sourcing","archived":false,"fork":false,"pushed_at":"2020-05-04T18:16:24.000Z","size":308,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-10T04:56:37.701Z","etag":null,"topics":["event-sourcing","golang-examples","kafka","kafka-cluster","rest-api"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/cedrickchee.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":"2020-05-04T17:38:16.000Z","updated_at":"2025-02-21T15:52:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"2caf1728-11a8-4d2e-9d59-f94658f34216","html_url":"https://github.com/cedrickchee/kafka-eventsourcing-restapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cedrickchee/kafka-eventsourcing-restapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Fkafka-eventsourcing-restapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Fkafka-eventsourcing-restapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Fkafka-eventsourcing-restapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Fkafka-eventsourcing-restapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedrickchee","download_url":"https://codeload.github.com/cedrickchee/kafka-eventsourcing-restapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedrickchee%2Fkafka-eventsourcing-restapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28049972,"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-12-26T02:00:06.189Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["event-sourcing","golang-examples","kafka","kafka-cluster","rest-api"],"created_at":"2024-09-24T20:28:34.446Z","updated_at":"2025-12-26T08:21:11.535Z","avatar_url":"https://github.com/cedrickchee.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REST API and Event Sourcing with Kafka\n\nThis is a skeleton project for a Go REST API service using Kafka for event sourcing.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/images/demo.png\" alt=\"Demo\"/\u003e\n\u003c/p\u003e\n\nThis has only been tested on Linux, and depends on Docker to build.\n\n## Running Kafka\n\nStart Kafka cluster with Docker Compose:\n\n```\nHOST_IP=your-ip docker-compose -f docker-compose-kafka.yml up\n```\n\nAfter that, create a Kafka topic \"notification\" using this command:\n\n```\ndocker run --net=host --rm confluentinc/cp-kafka:5.0.0 kafka-topics --create --topic notification --partitions 4 --replication-factor 2 --if-not-exists --zookeeper localhost:32181\n```\n\nThis will create the topic \"notification\" with 4 partitions and replication factors = 2.\n\n## Building\n\nBuild and run Go application inside Docker.\n\nYou can try this project without installing Go, just run:\n\n```\nHOST_IP=your-ip docker-compose up --build\n```\n\nIt will build and run the API and 2 worker inside Docker container.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedrickchee%2Fkafka-eventsourcing-restapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedrickchee%2Fkafka-eventsourcing-restapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedrickchee%2Fkafka-eventsourcing-restapi/lists"}