Auf den `CooperativeStickyAssignor` umgestellt
authorKai Moritz <kai@juplo.de>
Sun, 24 Jul 2022 17:32:51 +0000 (19:32 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 24 Jul 2022 18:30:43 +0000 (20:30 +0200)
src/main/java/de/juplo/kafka/ApplicationConfiguration.java

index 87d073e..08c3955 100644 (file)
@@ -59,6 +59,7 @@ public class ApplicationConfiguration
     Properties props = new Properties();
 
     props.put("bootstrap.servers", properties.getBootstrapServer());
+    props.put("partition.assignment.strategy", "org.apache.kafka.clients.consumer.CooperativeStickyAssignor");
     props.put("group.id", properties.getGroupId());
     props.put("client.id", properties.getClientId());
     props.put("enable.auto.commit", false);