- spring microservices
git clone https://github.com/wonwoo/spring-microservices.git
- config server (cloud git my https://github.com/wonwoo/microservices-config.git)
- your git create repository
- spring-config-server application.yml your git url
- git push
- h2 database download
cd spring-microservices
- config server run
./spring-config-server/start-server-config.sh
- eureka server run
./spring-eureka-server/start-server-eureka.sh
- users1 server run
./users-webservices/start-server-users1.sh
- users2 server run
./users-webservices/start-server-users2.sh
- board1 server run
./board-webservices/start-server-board1.sh
- board2 server run
./board-webservices/start-server-board2.sh
- edge server run
./spring-zuul-server/start-server-zuul.sh
- hystrix server run
./hystrix-dashboard/start-server-hystrix.sh
- auth server run
./spring-microservices-auth/start-server-auth.sh
-
eureka server
- http://localhost:8761/
- Instances currently registered with Eureka
- SPRING-ZUUL-SERVER (192.168.0.6:spring-zuul-server:8765)
- USERS (192.168.0.6:users:8081 , 192.168.0.6:users:8080)
- BOARD (192.168.0.6:board:8082 , 192.168.0.6:board:8083)
- AUTH-SERVER (192.168.0.6:auth-server:8900)
-
auth server
- open webbrowser http://localhost:8765/user
- spring security custom login
- username :
wonwoo
password :111
- authorize Confirm
-
edge server
-
open webbrowser http://localhost:8765/user
[ { id: 1, name: "wonwoo", }, { id: 2, name: "kebin", } ]
-
open webbrowser http://localhost:8765/board
[ { id: 1, title: "title", }, { id: 2, title: ""spring boot microservices", } ]
-
load balancing
- log check
-
-
hystrix server
- http://localhost:8001/hystrix
- http://localhost:8765/hystrix.stream/
- Monitor Stream click
- http://localhost:8765/user refresh
- http://localhost:8765/board refresh
- hystrix check