Skip to content

Commit

Permalink
#586 suffix kafka consumer/producer client ids
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch.io>
  • Loading branch information
dguggemos committed Jun 9, 2021
1 parent b3a8156 commit 56eef15
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -72,7 +72,7 @@ ConsumerSettings<String, String> getConsumerSettings() {
return ConsumerSettings.apply(config.getConsumerConfig(), new StringDeserializer(), new StringDeserializer())
.withBootstrapServers(bootstrapServers)
.withGroupId(connection.getId().toString())
.withClientId(clientId);
.withClientId(clientId + "-consumer");
}

ProducerSettings<String, String> getProducerSettings() {
Expand All @@ -84,7 +84,7 @@ ProducerSettings<String, String> getProducerSettings() {
}

private Map<String, String> getClientIdProperties() {
return Map.of(CommonClientConfigs.CLIENT_ID_CONFIG, clientId);
return Map.of(CommonClientConfigs.CLIENT_ID_CONFIG, clientId + "-producer");
}

private Map<String, String> getSpecificConfigProperties() {
Expand Down

0 comments on commit 56eef15

Please sign in to comment.