Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/titikterang/debezium-redpanda-kafka
example file to test debezium integration with postgresql & redpanda kafka
https://github.com/titikterang/debezium-redpanda-kafka
Last synced: 5 days ago
JSON representation
example file to test debezium integration with postgresql & redpanda kafka
- Host: GitHub
- URL: https://github.com/titikterang/debezium-redpanda-kafka
- Owner: titikterang
- Created: 2022-05-18T16:02:06.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-18T18:22:44.000Z (over 2 years ago)
- Last Synced: 2024-05-11T17:52:14.238Z (6 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### overview
test debezium postgre integration with redpanda kafka### decode incoming message
incoming kafka message can be decoded by using avro decoder from redpanda schema registry at `localhost:8081````
redpanda schema registry documentation
https://redpanda.com/blog/schema_registry/
``````
golang library to decode message from schema registry
https://github.com/riferrei/srclient
```
### consumer
```shell
rpk topic consume pg_order.public.sb_order --brokers=0.0.0.0:29092
```### set connector config
after running docker compose, execute this request to upload connector config to debezium connector
```shell
curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" 127.0.0.1:8083/connectors/ --data "@connector/debezium-connector.json"
```### replace/delete connector
if you want to delete existing connector, so we can set the new one, run this command
```shell
curl -i -X DELETE localhost:8083/connectors/debezium-connector
```