What is the use of acts configuration in Kafka Producer API?

0 votes

Hi,

Can anyone tell me what is acts configuration in kafka Producer and how to use?

Thank You

Feb 11 in Apache Kafka by akhtar
• 10,330 points
59 views

1 answer to this question.

0 votes

Hi@akhtar,

The acts configuration is used to configure acknowledgements. When producer sends some messages to the kafka broker, than the producer gets back an acknowledgement from the kafka broker.
The parameter acts can take three values
acts=0
acts=1
acts=all

when acts=0, then the producer will not wait for an acknowledgement.
When acts=1, It gets response from the leader partition.
when acts=all, It gets response from all the partitions.

Hope this will help you.

Thank You

answered Feb 11 by MD
• 22,520 points

Related Questions In Apache Kafka

+1 vote
1 answer

What is the need of zookeeper in kafka? Can I use kafka without zookeeper?

Hi@akhtar, You can not use kafka without zookeeper. ...READ MORE

answered Feb 6 in Apache Kafka by MD
• 22,520 points
979 views
0 votes
1 answer

What is the optimum number of producers to create in Kafka?

In general, a single producer for all ...READ MORE

answered Jul 10, 2018 in Apache Kafka by nitinrawat895
• 10,920 points
2,683 views
+1 vote
1 answer

What is the importance of Kafka bootstrap.servers?

Hi@akhtar, Bootstrap.servers is a mandatory field in Kafka ...READ MORE

answered Feb 11 in Apache Kafka by MD
• 22,520 points
1,764 views
+1 vote
10 answers

Writing the Kafka consumer output to a file

System.out.println(String.valueOf(output.offset()) + ": " + new String(bytes, ...READ MORE

answered Dec 7, 2018 in Apache Kafka by Harsh
12,841 views
0 votes
1 answer

How to create kafka producer API?

Hi@akhtar, To create kafka producer API, you can ...READ MORE

answered Feb 11 in Apache Kafka by MD
• 22,520 points
58 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,920 points
5,068 views
0 votes
1 answer

What is the need of serializer in Kafka Producer API?

Hi@akhtar, If we try to use String key ...READ MORE

answered Feb 11 in Apache Kafka by MD
• 22,520 points
110 views
0 votes
1 answer

What is the meaning of retries in Kafka Producer API?

Hi@akhtar, It defines how many time the producer ...READ MORE

answered Feb 11 in Apache Kafka by MD
• 22,520 points
145 views