TODO:fetch.max.wait.ms
authorKai Moritz <kai@juplo.de>
Thu, 26 Dec 2024 10:46:02 +0000 (11:46 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 10 Jan 2025 09:45:28 +0000 (10:45 +0100)
src/main/java/de/juplo/kafka/ApplicationConfiguration.java

index 619e44c..99c1481 100644 (file)
@@ -79,6 +79,7 @@ public class ApplicationConfiguration
     props.put("metadata.maxage.ms", 5000); //  5 Sekunden
     props.put("max.poll.interval.ms", (int) properties.getConsumer().getMaxPollInterval().toMillis());
     props.put("max.poll.interval.records", properties.getConsumer().getMaxPollRecords());
+    props.put("fetch.max.wait.ms", 100);
     props.put("partition.assignment.strategy", StickyAssignor.class.getName());
     props.put("key.deserializer", StringDeserializer.class.getName());
     props.put("value.deserializer", LongDeserializer.class.getName());