<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Logical-Replication on Nikita Ryanov</title><link>https://nryanov.com/tags/logical-replication/</link><description>Recent content in Logical-Replication on Nikita Ryanov</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 10 May 2024 04:30:00 +0300</lastBuildDate><atom:link href="https://nryanov.com/tags/logical-replication/index.xml" rel="self" type="application/rss+xml"/><item><title>PostgreSQL: Log-based CDC using debezium</title><link>https://nryanov.com/postgresql/debezium-postgres/</link><pubDate>Fri, 10 May 2024 04:30:00 +0300</pubDate><guid>https://nryanov.com/postgresql/debezium-postgres/</guid><description>&lt;p&gt;In this little article I&amp;rsquo;ll show different ways to set up debezium for log-based CDC.
Before diving into details about debezium, I&amp;rsquo;ll shortly describe CDC and why it may be helpful in some tasks.&lt;/p&gt;
&lt;h1 id="cdc-change-data-capture"&gt;CDC: Change Data Capture &lt;!-- raw HTML omitted --&gt;&lt;!-- raw HTML omitted --&gt;&lt;/h1&gt;
&lt;p&gt;In the Internet the &lt;code&gt;CDC&lt;/code&gt; is described as a design pattern which allows to track data changes (deltas).
Let&amp;rsquo;s consider this approach on table &lt;code&gt;user_balances&lt;/code&gt;. Initial state of table is:&lt;/p&gt;</description></item><item><title>PostgreSQL: Logical Replication</title><link>https://nryanov.com/postgresql/postgresql-logical-replication/</link><pubDate>Fri, 04 Feb 2022 22:50:00 +0300</pubDate><guid>https://nryanov.com/postgresql/postgresql-logical-replication/</guid><description>&lt;h1 id="prerequisite"&gt;Prerequisite &lt;!-- raw HTML omitted --&gt;&lt;!-- raw HTML omitted --&gt;&lt;/h1&gt;
&lt;p&gt;All examples assume that postgresql is already installed on your machine.
Also, all examples are created using &lt;code&gt;PostgreSQL 14.1 on aarch64-apple-darwin20.6.0, compiled by Apple clang version 13.0.0 (clang-1300.0.29.3), 64-bit&lt;/code&gt;.&lt;/p&gt;
&lt;h1 id="logical-replication"&gt;Logical replication &lt;!-- raw HTML omitted --&gt;&lt;!-- raw HTML omitted --&gt;&lt;/h1&gt;
&lt;p&gt;Logical replication is another method to replicate data between multiple nodes. This replication uses publish-subscribe model.
Each publisher may have multiple subscribers and each subscriber can subscribe to multiple publisher. Also, each subscriber may
be a publisher for another node which make it possible to create a cascading replication.&lt;/p&gt;</description></item></channel></rss>