Skip to main content

Exactly-once delivery in Aiven for Apache Kafka MirrorMaker 2

Exactly-once delivery in Aiven for Apache Kafka MirrorMaker 2 replicates each message exactly once between clusters, preventing duplicates or data loss.

Exactly-once delivery semantics

Exactly-once delivery semantics provide a transactional guarantee for message replication, ensuring that all messages in a batch are either fully committed to the target cluster or not replicated at all. This maintains data consistency across clusters.

note

Exactly-once delivery does not require ACL modifications by default. However, in external Apache Kafka setups where ACLs are applied to the TransactionalId resource, review and adjust these ACLs as needed to enable exactly-once delivery.

Prerequisites

Enable or disable exactly-once delivery

  1. In the Aiven Console, open your Aiven for Apache Kafka service with the Aiven for Apache Kafka MirrorMaker 2 integration.
  2. Click Integrations.
  3. Click the Aiven for Apache Kafka MirrorMaker 2 integration.
  4. Click Replication flow in the sidebar.
    • To create a new flow, click Create replication flow .
    • To modify an existing flow, select Edit.
  5. Set Exactly-once message delivery enabled to Enabled to turn it on or Disabled to turn it off.
  6. Click Create or Save.