docker-compose build docker-compose up
To observe the customized greeting, as they appear in the greetings
Kafka topic, run in a separate terminal:
docker-compose exec kafka kafka-console-consumer \ --bootstrap-server kafka:9092 \ --isolation-level read_committed \ --from-beginning \ --topic greetings
Try adding few more input lines to input-example.json, and restart the producer service.
docker-compose restart producer
Feeling curious? add the following print to the person
function at functions.py: print(f"Hello there {context.address.id}!", flush=True)
.
Then, rebuild and restart only the functions
service.
docker-compose build functions docker-compose up functions