From a546df347b5630fc2a8579af934818f96c9525d4 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 2 Nov 2024 18:38:18 +0100 Subject: [PATCH] Setup mit 3 Konsumern und ein bischen mehr Dampf --- docker/docker-compose.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 7efe231..0c2b3c4 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -214,13 +214,35 @@ services: juplo.bootstrap-server: kafka:9092 juplo.client-id: producer juplo.producer.topic: test + juplo.producer.linger-ms: 666 + juplo.producer.throttle-ms: 10 - consumer: + consumer-1: image: juplo/spring-consumer:1.1-SNAPSHOT environment: juplo.bootstrap-server: kafka:9092 - juplo.client-id: consumer + juplo.client-id: consumer-1 juplo.consumer.topic: test + juplo.producer.linger-ms: 1000 + logging.level.de.juplo: TRACE + + consumer-2: + image: juplo/spring-consumer:1.1-SNAPSHOT + environment: + juplo.bootstrap-server: kafka:9092 + juplo.client-id: consumer-2 + juplo.consumer.topic: test + juplo.producer.linger-ms: 1000 + logging.level.de.juplo: TRACE + + consumer-3: + image: juplo/spring-consumer:1.1-SNAPSHOT + environment: + juplo.bootstrap-server: kafka:9092 + juplo.client-id: consumer-3 + juplo.consumer.topic: test + juplo.producer.linger-ms: 1000 + logging.level.de.juplo: TRACE volumes: zookeeper-data: -- 2.20.1