Skip to main content

Re: Can a message avoid loss occur in Kafka

For the config you provide, data loss should not happen (as long as you
don't allow for unclean leader election, which is disabled by default).

But you might be subject to unavailability for some partitions if a
broker fails.


-Matthias

On 9/17/23 7:49 AM, 陈近南 wrote:
> Hello,
> Can a message avoid loss occur in Kafka. For example, my config is:
>
>
> Producer
> retries = Integer.MAX_VALUE
> request.required.acks=-1
>
>
> Broker
> replication.factor >= 2
> min.insync.replicas > 1
> log.flush.interval.messages=1
>
>
> Consumer
> enable.auto.commit = false
>
> Can it avoid loss message occur in Kafka, if can not, why? and does exist other MQ can do avoid?
>
>
> Best regards,
> Chen
>

Comments