This repository demos the use of Koordinator to integrate batch and stream
based jobs. In this example, we have a batch job image-search
, that given some
search terms generate a list of urls of images matching the terms; and
download-image
, a Kafka producer/consumer written in Java that allows one to
download the images in parallel.
- A Kafka broker, in our tests we use this docker container
- Set the variables
WORKER_USERNAME
andWORKER_PASSWORD
as your credentials in the Koordinator server,KOORDINATOR_URL
as the url of your server andKAFKA_BROKER
as the name of your Kafka broker.
- Install the dependencies of the
image-search
worker:cd image-search && yarn install && cd ..
- Build the
download-image
worker:cd download-image && ./build.sh && cd ..
Just run the script ./test.sh
. It will start the workers and the workflow.
You should be able to monitor its execution in the Koordinator frontend.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request