- Java 8
- Maven 3
- Python 3.7
- Mysql:
- Databases:
- num_service_monitoring.
- Username: num_service_monitoring
- Password: num_service_monitoring
- Port 3306
- numismatic_service.
- Username: numismatic_service
- Password: numismatic_service
- Port 3306
- user_service.
- Username: user_service
- Password: user_service
- Port 3306
- coin_service.
- Username: coin_service
- Password: coin_service
- Port 3306
- num_service_monitoring.
- Databases:
mvn -f ./discovery-client-module/pom.xml clean install
mvn -f ./api-gateway/pom.xml clean install
mvn -f ./numismatic-service/pom.xml clean install
mvn -f ./coin-service/pom.xml clean install
mvn -f ./service-discovery/pom.xml clean install
mvn -f ./service-monitoring/pom.xml clean install
mvn -f ./user-service/pom.xml clean install
mvn -f ./stub-service/pom.xml clean install
mvn -f ./auth-service/pom.xml clean install
In config.yml file it's possible to configure the application (service discovery location, machine learning strategies and so on). You will find more details into config.yml file.
For each microservice, go to the target directory and execute the jar file.
For instance, for numismatic service:
cd numismatic-service/target
java -jar -Dspring.profiles.active=profile1 numismatic-service-0.0.1-SNAPSHOT.jar
You can specify different profile (from 1 to 5) in order to run multiple instances of the same microservice that have different response delays over time.
cd ml-engine
python3 ./app.py
python3 client.py > client.log &