Exactly Once Delivery
Enable exactly once delivery guarantees.
Found an issue? Feed it back to us at Github, on Slack, Ask Marios or email.
To execute K2K, you must agree to the EULA and secure a free license.
Accept the EULA by setting license.acceptEula
to true
.
Secure a free license by:
emailing [email protected] to receive a token within seconds
setting
license.token
with the received token
K2K uses at-least-once
delivery by default, but it can be configured for exactly-once
delivery. This tutorial will guide you on how to enable exactly-once
delivery.
Requirements
This tutorial assumes the following files exist (See Setting up for more details):
name: "my-first-replication"
features:
autoCreateControlTopics: enabled
autoCreateTopics: enabled
source:
kafka:
common:
"bootstrap.servers": "kafka-source:9092"
consumer:
"group.id": "k2k.my-first-k2k"
target:
kafka:
common:
"bootstrap.servers": "kafka-target:9092"
replication:
- source:
topic: ".*"
- sink:
topic: source
partition: source
To ensure a clean start, execute this command to reset any prior configurations from earlier tutorials.
docker compose down
Enabling Exactly Once
To achieve exactly-once semantics, enable that option and set the idempotent flag on the producer instance as follows:
features:
exactlyOnce: enabled
....
target:
kafka:
producer:
"enable.idempotence": "true"
....
Last updated
Was this helpful?