streamstack
streamstack copied to clipboard
[feature] Example: Postgres CDC to ClickHouse through connectors
Summary
An end-to-end connectors example with real systems on both sides: Postgres source in CDC mode, one PicoMQ topic per table via dynamic routing, ClickHouse sink with a templated table per topic.
The current harness demo is random source to stdout sink. It shows the runtime works, not what connectors are for.
Notes
examples/connectors, docker compose with pico, pico-connectors, Postgres and ClickHouse.- Source routes on the table name so
ordersandcustomersland incdc.ordersandcdc.customers. - Sink subscribes to
cdc\..*and writes to{topic_segment[-1]}. - A seed script that inserts and updates rows, and a query that shows them arriving in ClickHouse.
- Kill the connectors container mid-run and restart it to show resume from checkpoint.