From: Kai Moritz Date: Sun, 24 Jul 2022 17:32:51 +0000 (+0200) Subject: Auf den `CooperativeStickyAssignor` umgestellt X-Git-Tag: wip-DEPRECATED~2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=99fcb9112d294b0ce86a2633f8a90a70dc1631d7;p=demos%2Fkafka%2Ftraining Auf den `CooperativeStickyAssignor` umgestellt --- diff --git a/src/main/java/de/juplo/kafka/ApplicationConfiguration.java b/src/main/java/de/juplo/kafka/ApplicationConfiguration.java index 87d073e..08c3955 100644 --- a/src/main/java/de/juplo/kafka/ApplicationConfiguration.java +++ b/src/main/java/de/juplo/kafka/ApplicationConfiguration.java @@ -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);