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>
Fri, 12 Aug 2022 14:44:56 +0000 (16:44 +0200)
src/main/java/de/juplo/kafka/ApplicationConfiguration.java

index 7a24c97..9b06b09 100644 (file)
@@ -60,6 +60,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);