projects
/
demos
/
kafka
/
training
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version des `spring-consumer` mit einem Dead-Letter-Topic
[demos/kafka/training]
/
README.sh
diff --git
a/README.sh
b/README.sh
index
c2ea029
..
07db086
100755
(executable)
--- a/
README.sh
+++ b/
README.sh
@@
-1,6
+1,6
@@
#!/bin/bash
#!/bin/bash
-IMAGE=juplo/spring-consumer-json:1.0-SNAPSHOT
+IMAGE=juplo/spring-consumer-json
-kafkalistener
:1.0-SNAPSHOT
if [ "$1" = "cleanup" ]
then
if [ "$1" = "cleanup" ]
then
@@
-40,9
+40,17
@@
echo "Writing poison pill..."
echo 'BOOM!' | kafkacat -P -b :9092 -t test
# end::poisonpill[]
echo 'BOOM!' | kafkacat -P -b :9092 -t test
# end::poisonpill[]
-docker-compose logs -f consumer-1 consumer-2
+echo "Writing logic error..."
+# tag::logicerror[]
+echo 66 | http -v :8080/peter?error=1
+# end::logicerror[]
+
+echo 66 | http -v :8080/peter
+echo 7 | http -v :8080/klaus
-echo "Restarting consumer-1..."
-# tag::restart[]
-docker-compose up consumer-1
-# end::restart[]
+sleep 5
+docker-compose stop consumer-1 consumer-2
+docker-compose logs -f consumer-1 consumer-2
+# tag::kafkacat[]
+kafkacat -b :9092 -t test.DLT -e -f 'p=%p|o=%o|%k=%s|h=%h\n'
+# end::kafkacat[]