Setup mit 3 Konsumern und ein bischen mehr Dampf
authorKai Moritz <kai@juplo.de>
Sat, 2 Nov 2024 17:38:18 +0000 (18:38 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 8 Nov 2024 17:21:17 +0000 (18:21 +0100)
docker/docker-compose.yml

index 7efe231..0c2b3c4 100644 (file)
@@ -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: