From: Kai Moritz Date: Sun, 29 Jan 2023 17:43:04 +0000 (+0100) Subject: Beispiel in README.sh verbessert X-Git-Tag: simple-consumer--spikzettel--2023-02-signal X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=59f2c7fe0c84391f55f04aebd171787c4405d635;p=demos%2Fkafka%2Ftraining Beispiel in README.sh verbessert --- diff --git a/README.sh b/README.sh index 74eb764..ede8623 100755 --- a/README.sh +++ b/README.sh @@ -21,6 +21,8 @@ sleep 5 docker-compose start consumer-3 docker-compose stop consumer-1 +sleep 1 +docker-compose start consumer-2 sleep 5 docker-compose start consumer-1 @@ -29,7 +31,15 @@ sleep 5 docker-compose stop producer consumer-1 consumer-2 consumer-3 docker-compose logs consumer-1 -echo "Received messages for test/0" +echo "Messages received by consumer-1 for test/0" docker-compose logs consumer-1 | grep test/0 -echo "Received messages for test/1" +echo "Messages received by consumer-2 for test/0" +docker-compose logs consumer-2 | grep test/0 +echo "Messages received by consumer-3 for test/0" +docker-compose logs consumer-3 | grep test/0 +echo "Messages received by consumer-1 for test/1" docker-compose logs consumer-1 | grep test/1 +echo "Messages received by consumer-2 for test/1" +docker-compose logs consumer-2 | grep test/1 +echo "Messages received by consumer-3 for test/1" +docker-compose logs consumer-3 | grep test/1