How We Pushed CDC into Postgres

(snowflake.com)

54 points | by craigkerstiens 3 hours ago

5 comments

  • gopalv 1 hour ago
    This was basically Vertica's party trick for quite a long time to have a WOS and ROS formats for the same row and anti-caching between those two.

    You could've built a similar system with dezebium and delta lake for quite some time but it would fail compactions, if you run it fast enough. I've seen Oracle GoldenGate 12c do this trick in 2014 or so, using Mysql as the cheap replica. But they are all fragile to schema updates in some direction.

    The closest batteries-included equivalent to this is the Aurora -> Redshift bridge[1].

    [1] - https://aws.amazon.com/rds/aurora/zero-etl/

    • bastawhiz 1 hour ago
      Aurora zero etl was a nightmare for us. Almost any schema changes require a VACUUM FULL for it to continue functioning. On a few occasions, it just stopped running without an obvious explanation, requiring slow and lengthy back and forth threads with AWS support. If it worked as advertised, it would be great, but I can't recommend it for any serious production system.
  • bastawhiz 1 hour ago
    Clickhouse really nailed this with the acquisition of peerdb. I used it with many terabyte databases and I essentially never thought about it. The only thing we really had to watch for was trying to replicate too much at once (because of the physical compute/io capacity of the postgres or clickhouse clusters).
  • jauntywundrkind 7 minutes ago
    Although pg_lake is open source, worth noting that it heavily refers to but is missing CDC capabilities.

    There's a bunch of comments/links to a closed https://github.com/snowflake-eng/sfpg-extension-pg_lake_repl...

  • whateveracct 1 hour ago
    Snowflake is a really amazing product. It's been a delight using it the last few years.