streamstack icon indicating copy to clipboard operation
streamstack copied to clipboard

[feature] Example: Postgres CDC to ClickHouse through connectors

Open addu390 opened this issue 2 months ago • 0 comments

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 orders and customers land in cdc.orders and cdc.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.

addu390 avatar Sep 05 '26 14:09 addu390