nerdexam
Confluent

CCDAK · Question #73

What happens if you write the following code in your producer? producer.send(producerRecord).get()

The correct answer is B. Throughput will be decreased. Using Future.get() to wait for a reply from Kafka will limit throughput.

Developing Kafka Producers

Question

What happens if you write the following code in your producer? producer.send(producerRecord).get()

Options

  • ACompression will be increased
  • BThroughput will be decreased
  • CIt will force all brokers in Kafka to acknowledge the producerRecord
  • DBatching will be increased

How the community answered

(31 responses)
  • A
    10% (3)
  • B
    71% (22)
  • C
    16% (5)
  • D
    3% (1)

Explanation

Using Future.get() to wait for a reply from Kafka will limit throughput.

Topics

#synchronous send#throughput#Future.get()#producer performance

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice