From: Kai Moritz Date: Sun, 24 Jul 2022 17:32:51 +0000 (+0200) Subject: Auf den `CooperativeStickyAssignor` umgestellt X-Git-Tag: endless-stream-consumer-DEPRECATED^2^2^2~1^2~5 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=ecd63311e0b6af698185bcf1e085f2b3237bd264;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 7a24c97..9b06b09 100644 --- a/src/main/java/de/juplo/kafka/ApplicationConfiguration.java +++ b/src/main/java/de/juplo/kafka/ApplicationConfiguration.java @@ -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);