Confluent
CCDAK · Question #102
You want to send a message of size 3 MB to a topic with default message size configuration. How does KafkaProducer handle large messages?
The correct answer is C. MessageSizeTooLarge exception will be thrown, KafkaProducer will not retry and return. MessageSizeTooLarge is not a retryable exception.
Developing Kafka Producers
Question
You want to send a message of size 3 MB to a topic with default message size configuration. How does KafkaProducer handle large messages?
Options
- AKafkaProducer divides messages into sizes of max.request.size and sends them in order
- BKafkaProducer divides messages into sizes of message.max.bytes and sends them in order
- CMessageSizeTooLarge exception will be thrown, KafkaProducer will not retry and return
- DMessageSizeTooLarge exception will be thrown, KafkaProducer retries until the number of retries
How the community answered
(23 responses)- C96% (22)
- D4% (1)
Explanation
MessageSizeTooLarge is not a retryable exception.
Topics
#message size limit#max.request.size#MessageSizeTooLarge#producer configuration
Community Discussion
No community discussion yet for this question.