`delivery.timeout.ms` und `request.timeout.ms` noch weiter gesenkt
authorKai Moritz <kai@juplo.de>
Tue, 29 Oct 2024 21:27:25 +0000 (22:27 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 8 Nov 2024 17:06:35 +0000 (18:06 +0100)
src/main/java/de/juplo/kafka/ApplicationConfiguration.java

index d251427..27209b3 100644 (file)
@@ -39,8 +39,8 @@ public class ApplicationConfiguration
     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());