nerdexam
Confluent

CCDAK · Question #145

Your producer is producing at a very high rate and the batches are completely full each time. How can you improve the producer throughput? (select two)

The correct answer is A. Enable compression C. Increase batch.size. batch.size controls how many bytes of data to collect before sending messages to the Kafka broker. Set this as high as possible, without exceeding available memory. Enabling compression can also help make more compact batches and increase the throughput of your producer…

Developing Kafka Producers

Question

Your producer is producing at a very high rate and the batches are completely full each time. How can you improve the producer throughput? (select two)

Options

  • AEnable compression
  • BDisable compression
  • CIncrease batch.size
  • DDecrease batch.size
  • EDecrease linger.ms
  • FIncrease linger.ms

How the community answered

(52 responses)
  • A
    71% (37)
  • B
    4% (2)
  • D
    8% (4)
  • E
    2% (1)
  • F
    15% (8)

Explanation

batch.size controls how many bytes of data to collect before sending messages to the Kafka broker. Set this as high as possible, without exceeding available memory. Enabling compression can also help make more compact batches and increase the throughput of your producer. Linger.ms will have no effect as the batches are already full.

Topics

#compression#batch.size#producer throughput#performance tuning

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice