依次运行
- zipkin-server文件夹中的jar文件(java -jar)
- eurekaserver主类
- students-data-service两次或多次
- students-view-service-feign一次
- 查看 http://127.0.0.1:8012/students 刷新几次 查看每次调用的不同服务(端口)
- http://localhost:9411/zipkin/ 访问Find Traces,再查看依赖分析http://localhost:9411/zipkin/dependency/
看到使用者是 Used by (所使用) , Uses (使用)
也就是说 students-data-service 服务使用了 students-view-service-feign 来作为客户端负载均衡.