{"id":24974840,"url":"https://github.com/nits302/change_data_capture_streaming","last_synced_at":"2026-04-28T22:32:02.737Z","repository":{"id":269395075,"uuid":"907269010","full_name":"nits302/Change_Data_Capture_Streaming","owner":"nits302","description":"This project demonstrates the implementation of a Change Data Capture (CDC) system using Debezium, Kafka, Postgres, and Docker.","archived":false,"fork":false,"pushed_at":"2024-12-23T15:23:51.000Z","size":12879,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T07:14:33.016Z","etag":null,"topics":["cdc","debezium","docker-compose","kafka","zookeeper"],"latest_commit_sha":null,"homepage":"","language":"Python","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/nits302.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-12-23T07:55:13.000Z","updated_at":"2025-01-04T14:19:27.000Z","dependencies_parsed_at":"2025-02-03T21:00:06.385Z","dependency_job_id":null,"html_url":"https://github.com/nits302/Change_Data_Capture_Streaming","commit_stats":null,"previous_names":["nits302/change-data-capture-streaming","nits302/change_data_capture_streaming"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nits302%2FChange_Data_Capture_Streaming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nits302%2FChange_Data_Capture_Streaming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nits302%2FChange_Data_Capture_Streaming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nits302%2FChange_Data_Capture_Streaming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nits302","download_url":"https://codeload.github.com/nits302/Change_Data_Capture_Streaming/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246150458,"owners_count":20731419,"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":["cdc","debezium","docker-compose","kafka","zookeeper"],"created_at":"2025-02-03T20:42:56.203Z","updated_at":"2026-04-28T22:32:01.180Z","avatar_url":"https://github.com/nits302.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Change Data Capture Streaming Project with Debezium, Kafka, Postgres, Docker\n\nA real-time Change Data Capture (CDC) streaming project that captures database changes from PostgreSQL and streams them to Apache Kafka using Debezium.\n\n## Overview\n\nThis project demonstrates the implementation of a Change Data Capture (CDC) system using Debezium, Kafka, Postgres, and Docker. The system generates simulated financial transactions using a Python script and inserts them into a PostgreSQL database. It is particularly useful for setting up a test environment for CDC with Debezium. The script uses the faker library to create realistic yet fictitious transaction data.\n\n## Architecture\n\nThe project uses the following components:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"images/architecture.png\" alt=\"Wallpaper\"\u003e\n\u003c/p\u003e\n\n- Apache Kafka\n- Apache ZooKeeper\n- Debezium Connect\n- Debezium UI\n- PostgreSQL\n- Confluent Control Center\n\n\n## Prerequisites\n\n- Docker and Docker Compose\n- Python 3.x\n- Required Python packages (see `requirements.txt`):\n  - Faker\n  - psycopg2-binary\n  - python-dateutil\n  - six\n\n## Setup \u0026 Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/nits302/Change-Data-Capture-Streaming.git\ncd cdc-streaming\n```\n\n2. Create and activate a virtual environment:\n\n```bash\npython -m venv venv\nsource venv/bin/activate  # Linux/Mac\n.\\venv\\Scripts\\activate   # Windows\n```\n\n3. Install dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n4. Start the infrastructure using Docker Compose:\n\n```bash\ndocker-compose up -d\n```\n\nCheck containers in docker desktop:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"images/docker.png\" alt=\"Wallpaper\"\u003e\n\u003c/p\u003e\n\n5 - Access to `control center UI` monitor Topic health, Procuder and consumer performance, Offset, Cluster health: `localhost:9021`\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"images/control_center.png\" alt=\"Wallpaper\"\u003e\n\u003c/p\u003e\n\n6 - Debezium: `localhost:8080`\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"images/debezium_connector.png\" alt=\"Wallpaper\"\u003e\n\u003c/p\u003e\n\n## Services\n\nThe following services will be available:\n\n| Service                  | URL                   | Description                   |\n| ------------------------ | --------------------- | ----------------------------- |\n| Kafka Broker             | localhost:9092        | Apache Kafka broker           |\n| Confluent Control Center | http://localhost:9021 | Kafka management UI           |\n| Debezium Connect         | http://localhost:8093 | Debezium Connect REST API     |\n| Debezium UI              | http://localhost:8080 | Debezium management interface |\n| PostgreSQL               | localhost:5435        | PostgreSQL database           |\n\n## Configuration\n\nThe project uses the following default configurations (from docker-compose.yml):\n\n- PostgreSQL:\n\n  - Database: financial_db\n  - Username: postgres\n  - Password: postgres\n  - Port: 5435\n\n- Kafka:\n  - Bootstrap servers: localhost:9092\n  - External access: localhost:29092\n  - Internal access: broker:29092\n\n## 🚀 Video DEMO\n\n[Demo Project Change Data Capture Streaming](https://youtu.be/pfwxqGCbFBY)\n\n\u003cb\u003e ⚡️That's all for my project, thanks for watching. If you have any question, don't hesitate inbox me.⚡️\u003c/b\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnits302%2Fchange_data_capture_streaming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnits302%2Fchange_data_capture_streaming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnits302%2Fchange_data_capture_streaming/lists"}