Skip to content

Kafka producer configurations #2122

@Miguel-Garcia-TH

Description

@Miguel-Garcia-TH

Hi,

I have a question/issue to raise and I hope this is the right place to do it, as Slack seems a bit quiet.

I’m using Sequin with a Kafka sink and am encountering duplicate messages, particularly when Kafka brokers crash.

After some research and debugging, I believe the duplicates are caused by an acknowledgment that is never received. The Kafka producer inside Sequin appears to retry before another broker responds with the ack. This seems related to the behavior described in your blog post on at-most-once, at-least-once, and exactly-once delivery.

To make my setup more resilient, I would need to configure additional Kafka producer settings. However, it seems that Sequin does not support overriding producer configurations beyond the options available in the web form or the Kafka sink configuration example.

Is there a way to override Kafka producer configs? For example, I would expect to be able to configure settings such as:

destination:
    type: "kafka"
    hosts: "<kafka_bootstrap_servers>"
    topic: "my-topic"
    acks: "all"
    retries: 3
    max_in_flight_requests_per_connection: 5
    enable_idempotence: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions