Skip to content

Commit

Permalink
Start the README
Browse files Browse the repository at this point in the history
  • Loading branch information
rieske committed Nov 1, 2023
1 parent 4284ce2 commit a8fa840
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
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

0 comments on commit a8fa840

Please sign in to comment.