@@ -3,19 +3,20 @@ It relies on wal2json for change notifications, see https://github.com/eulerto/w
3
3
It uses redis-cli to publish the notifications.
4
4
5
5
Demo usage:
6
- - the CDC'ed database must pre-exist, it should first be created as follows
7
- - run ` cd cdc `
8
- - run ` docker run -p 5432:5432 -v ./postgres-data:/var/lib/postgresql/data -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres postgres:12.16 `
9
- - using a postgresql client, create the 'test_db' database and a table
10
- - Ctrl-C the docker container started above
11
- - now run ` docker compose up -d `
12
- - checking configuration:
13
6
14
- - from docker desktop, open a terminal to redis container
15
- - from that terminal, run ` redis-cli SUBSCRIBE test_db_changes `
16
- - using a postgresql client, perform some inserts, updates or deletes in the 'test_db' database
7
+ - the CDC'ed database must pre-exist, it should first be created as follows
8
+ - run ` cd cdc `
9
+ - run ` docker run -p 5432:5432 -v ./postgres-data:/var/lib/postgresql/data -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres postgres:12.16 `
10
+ - using a postgresql client, create the 'test_db' database and a table
11
+ - Ctrl-C the docker container started above
12
+ - now run ` docker compose up -d `
13
+ - checking configuration:
14
+
15
+ - from docker desktop, open a terminal to redis container
16
+ - from that terminal, run ` redis-cli SUBSCRIBE test_db_changes `
17
+ - using a postgresql client, perform some inserts, updates or deletes in the 'test_db' database
17
18
18
19
Real usage:
19
- - you need to configure the env variables of the postgres service in the docker-compose.yml file
20
- - the database name should be set to the messages repository name configured for the mediator
21
20
21
+ - you need to configure the env variables of the postgres service in the docker-compose.yml file
22
+ - the database name should be set to the messages repository name configured for the mediator
0 commit comments