fi
docker-compose -f docker/docker-compose.yml up -d --remove-orphans kafka-1 kafka-2 kafka-3
-docker-compose -f docker/docker-compose.yml rm -svf consumer
if [[
$(docker image ls -q $IMAGE) == "" ||
docker-compose -f docker/docker-compose.yml up -t0 -d cli
docker-compose -f docker/docker-compose.yml ps
-docker-compose -f docker/docker-compose.yml up -d producer
+docker-compose -f docker/docker-compose.yml up producer
# tag::kafkacat[]
kafkacat -b :9092 -t test -e -f'topic=%t\tpartition=%p\toffset=%o\tkey=%k\tvalue=%s\n'
// tag::callback[]
ListenableFuture<SendResult<String, String>> listenableFuture =
// tag::supersimple[]
- kafkaTemplate.send("test", Long.toString(i%10), Long.toString(i));
+ kafkaTemplate.sendDefault(Long.toString(i%10), Long.toString(i));
// end::supersimple[]
listenableFuture.addCallback(