-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# postgres-cdc | ||
|
||
[![Actions Status](https://github.com/rieske/postgres-cdc/workflows/master/badge.svg)](https://github.com/rieske/postgres-cdc/actions) | ||
|
||
Java library that utilizes [PostgreSQL logical replication](https://www.postgresql.org/docs/current/logical-replication.html) | ||
feature to implement [Change Data Capture](https://en.wikipedia.org/wiki/Change_data_capture). | ||
|
||
Once logical replication is configured on the PostgreSQL server, this library can subscribe to changes | ||
in the specified tables. | ||
The change events are streamed in real time and can be relayed to message brokers | ||
as they occur, allowing to implement the [Transactional Outbox](https://microservices.io/patterns/data/transactional-outbox.html) | ||
pattern. | ||
|
||
## Prerequisites | ||
|
||
PostgreSQL version 13.12 or later. | ||
Note 13.12 is the earliest one that this library is tested against at the time of writing. | ||
In theory, it may work with PostgreSQL 9.5 and above. | ||
|
||
Logical replication must be [configured](https://www.postgresql.org/docs/current/logical-replication-config.html#LOGICAL-REPLICATION-CONFIG-PUBLISHER) | ||
on the PostgreSQL server. | ||
|
||
If you are using AWS Aurora, see [here](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Replication.Logical.html#AuroraPostgreSQL.Replication.Logical.Configure) | ||
for instructions to enable logical replication. | ||
|
||
## Usage | ||
|