Outbox Pattern and SNAPSHOT

90 views
Skip to first unread message

Dylan Thomas

unread,
Mar 26, 2021, 12:36:08 PM3/26/21
to debezium
Hi all,

We're currently using Debezium + CDC to replicate data from one Postgres DB to a second DB to create materialized views. Not a fan of the materialized view pattern but that's another topic...

The source DB stores most data as unstructured JSOB and our transformation layer (sink handler) became way too complex leading to bugs. We're considering switching to an Outbox Pattern to reduce transformation complexity and publish structured data based on AVRO schemas.

My question is, how can SNAPSHOT functionality be implemented when using the Outbox pattern? My guess is you can't. We currently rely on snapshotting to address operational issues and data corruption due to code bugs.

Is there an alternative or practices that provide similar capabilities?

jiri.p...@gmail.com

unread,
Mar 26, 2021, 2:09:13 PM3/26/21
to debezium
Hi,


That would allow outbox wokring even for snapshotting.

J.

Dylan Thomas

unread,
Mar 26, 2021, 11:25:17 PM3/26/21
to debezium
Thanks jiri.p...

We do not use Quarkus, or JAVA for that matter. Is that a requirement to make this work? Are the specific setting I should look at for snapshotting? 

jiri.p...@gmail.com

unread,
Mar 29, 2021, 12:05:27 AM3/29/21
to debezium
Hi,

I am not sure I undertnd the problem fully then. If you use the outbox pattern and if you keep the rows in the outbox table then the snapshot should/will be possible to pickup the messages.

J.

Dylan Thomas

unread,
Mar 30, 2021, 10:16:13 AM3/30/21
to debezium

Makes sense, I was confused because the settings page you linked looked specific to quarkus. Thanks!!
Reply all
Reply to author
Forward
0 new messages