Setup für die Übung "acks=1"
authorKai Moritz <kai@juplo.de>
Sun, 3 Apr 2022 12:02:17 +0000 (14:02 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 3 Apr 2022 12:10:24 +0000 (14:10 +0200)
README.sh
docker-compose.yml

index a60804a..f35b5d5 100755 (executable)
--- a/README.sh
+++ b/README.sh
@@ -30,10 +30,10 @@ docker-compose up -d
 sleep 15
 
 echo foo | http -v :8080/foo
-docker-compose kill -s 9 kafka-1
+docker-compose stop kafka-1
 sleep 5
 echo bar | http -v :8080/bar
-docker-compose kill -s 9 kafka-3
+docker-compose stop kafka-3
 sleep 5
 echo foobar | http -v :8080/foobar
 
index 2747529..a18ebec 100644 (file)
@@ -81,6 +81,7 @@ services:
       producer.bootstrap-server: kafka:9092
       producer.client-id: producer
       producer.topic: test
+      producer.acks: 1
 
   consumer:
     image: juplo/counting-consumer:1.0-SNAPSHOT