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 start
Restarting the project and rebuild images if necessary
make restart
Display a list of the running services
make status
Stop the project and clean up environment
make stop
Clean/reset the database
make clean
Inspect logs of the service selected with the variable SERVICE
make inspect SERVICE=handler
The variable SERVICE
must contain the name of service you wish to inspect.
Here we inspect the service named handler
.