This project is an example of how to use the PHI Architecture to build Event-Driven Data Collection. For more details, see the article "Event-Driven Data Collection" which offers in depth explanations.
To run this project, we advise to use Docker and Docker Compose. It will avoid the trouble of installing all the required dependencies. This projects uses Golang v1.4, MongoDB, Kafka, and ZooKeeper.
The Makefile offers an extra layer on top of Docker Compose to simplify running the project.
Starting the project:
make startRestarting the project and rebuild images if necessary
make restartDisplay a list of the running services
make statusStop the project and clean up environment
make stopClean/reset the database
make cleanInspect logs of the service selected with the variable SERVICE
make inspect SERVICE=handlerThe variable SERVICE must contain the name of service you wish to inspect.
Here we inspect the service named handler.