Skip to content

Integration of machine learning into service discovery process of a microservices architecture

License

Notifications You must be signed in to change notification settings

detomarco/machine-learning-driven-service-discovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A machine learning-driven approach to service discovery for microservice architectures

Installation :

Prerequisites

Build microservices

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

App configuration

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.

Start application

Run microservices

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.

Run machine learning engine

cd ml-engine
python3 ./app.py

Run client

python3 client.py > client.log &

About

Integration of machine learning into service discovery process of a microservices architecture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published