{"id":16032742,"url":"https://github.com/voutilad/rpcn-cdc","last_synced_at":"2026-06-07T19:31:49.438Z","repository":{"id":253432512,"uuid":"843487410","full_name":"voutilad/rpcn-cdc","owner":"voutilad","description":"A demo of using Debezium CDC with Redpanda Connect.","archived":false,"fork":false,"pushed_at":"2024-08-16T16:23:19.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T02:44:51.177Z","etag":null,"topics":["cdc","debezium","redpanda","redpanda-connect"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voutilad.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":"2024-08-16T16:14:13.000Z","updated_at":"2024-08-16T16:23:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"98ed28de-4b1e-427b-a94e-163a92ff6814","html_url":"https://github.com/voutilad/rpcn-cdc","commit_stats":null,"previous_names":["voutilad/rpcn-cdc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/voutilad/rpcn-cdc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voutilad%2Frpcn-cdc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voutilad%2Frpcn-cdc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voutilad%2Frpcn-cdc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voutilad%2Frpcn-cdc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voutilad","download_url":"https://codeload.github.com/voutilad/rpcn-cdc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voutilad%2Frpcn-cdc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34035953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"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":["cdc","debezium","redpanda","redpanda-connect"],"created_at":"2024-10-08T21:40:28.054Z","updated_at":"2026-06-07T19:31:49.406Z","avatar_url":"https://github.com/voutilad.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redpanda Connect CDC Demo\n\nThis demo shows an architecture of a standalone Debezium Server replicating\nchange events from a PostgreSQL database to a Redpanda Connect instance\nthat sinks the data to `stdout` (for now).\n\n## Required\n- `docker` w/ compose\n- `jq` (optional, but handy)\n\n## Running\n\nIn one terminal:\n\n```sh\ndocker compose up\n```\n\nYou can tail the Redpanda Connect logs (in json) in another terminal:\n\n```sh\ndocker logs -f rpcn-cdc-rpcn-1 | jq\n```\n\nNow insert some data into one of the tables using the helper script:\n\n```sh\n./psql.sh \"INSERT INTO films (code, title, did) VALUES ('a', 'Troll 2', 1234);\"\n```\n\n\u003e note: code is set up as a primary key at the moment\n\n## Output\n\nFor the above, you should get something similar to:\n\n```json\n{\n    \"schema\": {\n        \"type\": \"struct\",\n        \"fields\": [\n            {\n                \"type\": \"struct\",\n                \"fields\": [\n                    {\n                        \"type\": \"string\",\n                        \"optional\": false,\n                        \"field\": \"code\"\n                    },\n                    {\n                        \"type\": \"string\",\n                        \"optional\": false,\n                        \"field\": \"title\"\n                    },\n                    {\n                        \"type\": \"int32\",\n                        \"optional\": false,\n                        \"field\": \"did\"\n                    },\n                    {\n                        \"type\": \"int32\",\n                        \"optional\": true,\n                        \"name\": \"io.debezium.time.Date\",\n                        \"version\": 1,\n                        \"field\": \"date_prod\"\n                    },\n                    {\n                        \"type\": \"string\",\n                        \"optional\": true,\n                        \"field\": \"kind\"\n                    },\n                    {\n                        \"type\": \"int64\",\n                        \"optional\": true,\n                        \"name\": \"io.debezium.time.MicroDuration\",\n                        \"version\": 1,\n                        \"field\": \"len\"\n                    }\n                ],\n                \"optional\": true,\n                \"name\": \"movies.public.films.Value\",\n                \"field\": \"before\"\n            },\n            {\n                \"type\": \"struct\",\n                \"fields\": [\n                    {\n                        \"type\": \"string\",\n                        \"optional\": false,\n                        \"field\": \"code\"\n                    },\n                    {\n                        \"type\": \"string\",\n                        \"optional\": false,\n                        \"field\": \"title\"\n                    },\n                    {\n                        \"type\": \"int32\",\n                        \"optional\": false,\n                        \"field\": \"did\"\n                    },\n                    {\n                        \"type\": \"int32\",\n                        \"optional\": true,\n                        \"name\": \"io.debezium.time.Date\",\n                        \"version\": 1,\n                        \"field\": \"date_prod\"\n                    },\n                    {\n                        \"type\": \"string\",\n                        \"optional\": true,\n                        \"field\": \"kind\"\n                    },\n                    {\n                        \"type\": \"int64\",\n                        \"optional\": true,\n                        \"name\": \"io.debezium.time.MicroDuration\",\n                        \"version\": 1,\n                        \"field\": \"len\"\n                    }\n                ],\n                \"optional\": true,\n                \"name\": \"movies.public.films.Value\",\n                \"field\": \"after\"\n            },\n            {\n                \"type\": \"struct\",\n                \"fields\": [\n                    {\n                        \"type\": \"string\",\n                        \"optional\": false,\n                        \"field\": \"version\"\n                    },\n                    {\n                        \"type\": \"string\",\n                        \"optional\": false,\n                        \"field\": \"connector\"\n                    },\n                    {\n                        \"type\": \"string\",\n                        \"optional\": false,\n                        \"field\": \"name\"\n                    },\n                    {\n                        \"type\": \"int64\",\n                        \"optional\": false,\n                        \"field\": \"ts_ms\"\n                    },\n                    {\n                        \"type\": \"string\",\n                        \"optional\": true,\n                        \"name\": \"io.debezium.data.Enum\",\n                        \"version\": 1,\n                        \"parameters\": {\n                            \"allowed\": \"true,last,false,incremental\"\n                        },\n                        \"default\": \"false\",\n                        \"field\": \"snapshot\"\n                    },\n                    {\n                        \"type\": \"string\",\n                        \"optional\": false,\n                        \"field\": \"db\"\n                    },\n                    {\n                        \"type\": \"string\",\n                        \"optional\": true,\n                        \"field\": \"sequence\"\n                    },\n                    {\n                        \"type\": \"int64\",\n                        \"optional\": true,\n                        \"field\": \"ts_us\"\n                    },\n                    {\n                        \"type\": \"int64\",\n                        \"optional\": true,\n                        \"field\": \"ts_ns\"\n                    },\n                    {\n                        \"type\": \"string\",\n                        \"optional\": false,\n                        \"field\": \"schema\"\n                    },\n                    {\n                        \"type\": \"string\",\n                        \"optional\": false,\n                        \"field\": \"table\"\n                    },\n                    {\n                        \"type\": \"int64\",\n                        \"optional\": true,\n                        \"field\": \"txId\"\n                    },\n                    {\n                        \"type\": \"int64\",\n                        \"optional\": true,\n                        \"field\": \"lsn\"\n                    },\n                    {\n                        \"type\": \"int64\",\n                        \"optional\": true,\n                        \"field\": \"xmin\"\n                    }\n                ],\n                \"optional\": false,\n                \"name\": \"io.debezium.connector.postgresql.Source\",\n                \"field\": \"source\"\n            },\n            {\n                \"type\": \"struct\",\n                \"fields\": [\n                    {\n                        \"type\": \"string\",\n                        \"optional\": false,\n                        \"field\": \"id\"\n                    },\n                    {\n                        \"type\": \"int64\",\n                        \"optional\": false,\n                        \"field\": \"total_order\"\n                    },\n                    {\n                        \"type\": \"int64\",\n                        \"optional\": false,\n                        \"field\": \"data_collection_order\"\n                    }\n                ],\n                \"optional\": true,\n                \"name\": \"event.block\",\n                \"version\": 1,\n                \"field\": \"transaction\"\n            },\n            {\n                \"type\": \"string\",\n                \"optional\": false,\n                \"field\": \"op\"\n            },\n            {\n                \"type\": \"int64\",\n                \"optional\": true,\n                \"field\": \"ts_ms\"\n            },\n            {\n                \"type\": \"int64\",\n                \"optional\": true,\n                \"field\": \"ts_us\"\n            },\n            {\n                \"type\": \"int64\",\n                \"optional\": true,\n                \"field\": \"ts_ns\"\n            }\n        ],\n        \"optional\": false,\n        \"name\": \"movies.public.films.Envelope\",\n        \"version\": 2\n    },\n    \"payload\": {\n        \"before\": null,\n        \"after\": {\n            \"code\": \"a    \",\n            \"title\": \"Troll 2\",\n            \"did\": 1234,\n            \"date_prod\": null,\n            \"kind\": null,\n            \"len\": null\n        },\n        \"source\": {\n            \"version\": \"2.7.1.Final\",\n            \"connector\": \"postgresql\",\n            \"name\": \"movies\",\n            \"ts_ms\": 1723824732782,\n            \"snapshot\": \"false\",\n            \"db\": \"postgres\",\n            \"sequence\": \"[\\\"23533520\\\",\\\"23533576\\\"]\",\n            \"ts_us\": 1723824732782263,\n            \"ts_ns\": 1723824732782263000,\n            \"schema\": \"public\",\n            \"table\": \"films\",\n            \"txId\": 494,\n            \"lsn\": 23533576,\n            \"xmin\": null\n        },\n        \"transaction\": null,\n        \"op\": \"c\",\n        \"ts_ms\": 1723824733094,\n        \"ts_us\": 1723824733094897,\n        \"ts_ns\": 1723824733094897000\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoutilad%2Frpcn-cdc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoutilad%2Frpcn-cdc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoutilad%2Frpcn-cdc/lists"}