- User call API via only one endpoint (localhost:9000)
- Api gateway distribute and route to microservices
- Service Registry will control all of microservices
- Server config will save, share hystrix config file
- Zipkin will control code, CI/CD
Build and Run Microservice
- cd to microservice folders
$ mvn spring-boot:run
OR
$ mvn clean install
$ jar -jav .\target\{serviceName}.0.0.SNAPSHORT.jar
- Setup data
- Set up mysql
- run script: pa_task_management.sql
- Run redis server
- window: unzip Redis-x64-5.0.14.1.zip and run redis-server.exe
- macOs: cd redis-server
1. install docker application
2. $ docker-compose up -d
- service-registry
- cloud-config-server
- cloud-gateway
- hystrix-dashboard
- auth-server
- department-service
- user-service