`metadata.maxage.ms` auf 5 Sekunden heruntergesetzt
authorKai Moritz <kai@juplo.de>
Sat, 28 Sep 2024 10:00:20 +0000 (12:00 +0200)
committerKai Moritz <kai@juplo.de>
Fri, 14 Mar 2025 15:51:25 +0000 (16:51 +0100)
src/main/java/de/juplo/kafka/ExampleConsumer.java

index e5d4601..a945917 100644 (file)
@@ -37,6 +37,7 @@ public class ExampleConsumer
     props.put("partition.assignment.strategy", "org.apache.kafka.clients.consumer.CooperativeStickyAssignor");
     props.put("key.deserializer", StringDeserializer.class.getName());
     props.put("value.deserializer", StringDeserializer.class.getName());
+    props.put("metadata.maxage.ms", 5000);
 
     this.id = clientId;
     this.topic = topic;