How to Change the kafka.producer.acks property value in BE

How to Change the kafka.producer.acks property value in BE

book

Article ID: KB0071281

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition BE 5.6.1

Description

When connecting to the Kafka cluster as a producer application with the help of Kafka channel, if Kafka Producer applications need to update property “kafka.producer.acks” value to “all” and unable to find the specified property kafka.producer.acks in the BE Kafka channel or the BE application config.

Issue/Introduction

This article describes how to Change the kafka.producer.acks property value in BE

Environment

All

Resolution

Add below property to set ack property in kafka in CDD file :

be.channel.kafka/Channels/KafkaChannel/orderDest.acks

Please note that you need to change the channel name and destination name according to your project. The default value is 'all / -1'.

Here are possible values for this property:

acks=0

When acks=0 producers consider messages as "written successfully" the moment the message was sent without waiting for the broker to accept it at all.
This setting might result in message loss and can be used when some message loss is acceptable.
 

acks = 1

When acks=1 , producers consider messages as "written successfully" when the message was acknowledged by only the leader. If leader brokers go offline and replication was in progress at that time there might be data loss. 
 

acks = all

When acks=all, producers consider messages as "written successfully" when the message is accepted by all in-sync replicas (ISR). As long as brokers matching minimum.insync.replicas setting ack there will be no data loss.