props.put("acks", properties.getProducerProperties().getAcks());
props.put("batch.size", properties.getProducerProperties().getBatchSize());
props.put("metadata.max.age.ms", 5000); // 5 Sekunden
- props.put("delivery.timeout.ms", 20000); // 20 Sekunden
- props.put("request.timeout.ms", 10000); // 10 Sekunden
+ props.put("delivery.timeout.ms", 10000); // 10 Sekunden
+ props.put("request.timeout.ms", 5000); // 5 Sekunden
props.put("linger.ms", properties.getProducerProperties().getLinger().toMillis());
props.put("compression.type", properties.getProducerProperties().getCompressionType());
props.put("key.serializer", StringSerializer.class.getName());