Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13757

[KAFKA] Add delivery guarantee to source and sink

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Kafka
    • Labels:


      There has been some questions around delivery guarantee of data to and from the topic with respect to exactly once, at least once, etc. We should add this delivery information explicitly to the documentation for both source and sink.

      Answered by Robert in the forums here: https://developer.mongodb.com/community/forums/t/kafka-connector-delivery-guarantees/8757

      For sink default is At Least Once. If there is an error when processing data from a topic the connector will retry the write. However, if the data on the topic contains a unique attribute, it is possible to achieve exactly once semantics by configuring the Sink connector to use upserts and the DocumentIdAdder strategy. The sink connector can not support at most once.

      For source default is At least once. There is a risk of duplicate messages if you use copy.existing. Note that change stream events are idempotent so the need to support other delivery guarantees are not applicable.

      Scope of changes

      All versions

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            chris.cho@mongodb.com Christopher Cho (Inactive)
            robert.walters@mongodb.com Robert Walters
            0 Vote for this issue
            3 Start watching this issue

              3 years, 36 weeks, 3 days ago