# Logical Replication From Postgres 16 Stand-By Servers--Debezium and Failover Slots

DevFeed: [Logical Replication From Postgres 16 Stand-By Servers--Debezium and Failover Slots](<https://devfeed.tech/articles/logical-replication-from-postgres-16-stand-by-servers-debezium-and-failover-slots-18848.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/logical-replication-from-postgres-stand-by-servers-debezium-and-failover-slots/>)

Published: 2023-12-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Gunnar Morling](<https://devfeed.tech/sources/gunnar-morling.md>)

Topics: [Replication](<https://devfeed.tech/topics/replication.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [Kafka](<https://devfeed.tech/topics/kafka.md>), [Streaming](<https://devfeed.tech/topics/streaming.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Amazon DocumentDB](<https://devfeed.tech/topics/amazon-documentdb.md>)

Tags: [amazon-rds](<https://devfeed.tech/tags/amazon-rds.md>), [apache-kafka](<https://devfeed.tech/tags/apache-kafka.md>), [debezium](<https://devfeed.tech/tags/debezium.md>), [failover](<https://devfeed.tech/tags/failover.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [replication](<https://devfeed.tech/tags/replication.md>)

## AI overview

A tutorial on using Debezium to stream logical replication changes from PostgreSQL 16 standby servers, including failover scenarios and replication slots. It demonstrates a Docker Compose environment with Kafka and Kafka Connect, and discusses PostgreSQL deployments on Amazon RDS.

## Source excerpt

Table of Contents Stand-By Logical Replication With Debezium Towards Fail-Over Slots Wrap-Up This post originally appeared on the Decodable blog. All rights reserved. Welcome back to this series about logical replication from Postgres 16 stand-by servers, in which we'll discuss how to use this feature with Debezium--a popular open-source platform for Change Data Capture (CDC) for a wide range of databases--as well as how to manage logical replication in case of failover scenarios, i.e. a situation where your primary Postgres server becomes unavailable and a stand-by server needs to take over.