Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.38 KB

README.md

File metadata and controls

52 lines (36 loc) · 1.38 KB

Debezium Standalone Server

CircleCI Maven Central Maven Central

Implement Debezium Standalone Server without Apache Kafka, using Redis as infrastructure (Redis Stream) to push CDC event.

In this example includes:

  • Standalone worker

  • Prebuild docker-compose to demo multi-worker (Using atomic SetNX of Redis to deduplicate cdc event).

Prerequisites

  • Java 17
  • Docker
  • Docker-compose

Run multi-worker demo

This multi-worker demo using Postgres.

Start demo

docker-compose -f demo.yml up -d

Connect to Postgres and create some data

create table customers
(
    id   serial primary key not null,
    name varchar(255)       not null
);

Create 2 customers

insert into customers (name)
values ('First customer'),
       ('Second customer');

Result

Result

Go to Redisinsight browser tab -> Connect to Redis -> Redis Stream to check.