https://github.com/arkady-emelyanov/confluent-replicator
Bi-direction replication example
https://github.com/arkady-emelyanov/confluent-replicator
Last synced: 3 months ago
JSON representation
Bi-direction replication example
- Host: GitHub
- URL: https://github.com/arkady-emelyanov/confluent-replicator
- Owner: arkady-emelyanov
- Created: 2020-10-31T19:19:01.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-31T19:19:33.000Z (almost 5 years ago)
- Last Synced: 2025-04-02T23:35:34.128Z (6 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Confluent Replicator bi-directional setup
* Create a topic in DC1: `echo "init" | kafkacat -P -b localhost:9093 -t dc1-topic`
* Setup replication DC1 -> DC2 (DC2 pulls data from DC1): `./setup_dc1_to_dc2.sh`
* Setup replication DC2 -> DC1 (DC1 pulls data from DC2): `./setup_dc2_to_dc1.sh`
* Connect consumer to DC1: `kafkacat -C -b localhost:9093 -t dc1-topic -q`
* Connect consumer to DC2: `kafkacat -C -b localhost:9094 -t dc1-topic -q`
* Produce to DC1: `echo "dc1-message" | kafkacat -P -b localhost:9093 -t dc1-topic`
* Produce to DC2: `echo "dc2-message" | kafkacat -P -b localhost:9094 -t dc1-topic`Both consumers (DC1 and DC2) should display following messages:
```
init
dc1-message
dc2-message
```## Links
* [Replicator Docker Demo](https://docs.confluent.io/current/multi-dc-deployments/replicator/replicator-docker-tutorial.html#replicator)
* [Confluent Examples](https://github.com/confluentinc/examples)