Complete the code to set the buffer memory size in Kafka producer configuration.
props.put("buffer.memory", [1]);
The buffer.memory property expects a numeric value representing the total bytes of memory the producer can use to buffer records.
Complete the code to configure the batch size for Kafka producer buffers.
props.put("batch.size", [1]);
The batch.size property sets the maximum number of bytes to batch before sending to the broker.
Fix the error in setting linger.ms to control buffer delay.
props.put("linger.ms", [1]);
The linger.ms property expects an integer value representing milliseconds to wait before sending a batch.
Fill both blanks to configure buffer memory and batch size correctly.
props.put("buffer.memory", [1]); props.put("batch.size", [2]);
Buffer memory and batch size must be set as numeric values representing bytes.
Fill all three blanks to configure buffer.memory, batch.size, and linger.ms properly.
props.put("buffer.memory", [1]); props.put("batch.size", [2]); props.put("linger.ms", [3]);
All three properties require numeric values: buffer.memory and batch.size in bytes, linger.ms in milliseconds.