随笔分类 -  [微服务][springCloud]

springCloud(十三) spring cloud api网关 -zuul
摘要:1: 相关图片 2:项目配置 1: pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/ 阅读全文

posted @ 2020-06-26 14:02 顾~小诺 阅读(283) 评论(0) 推荐(0)

springCloud(十二) hystrix dashboard
摘要:被监控端 1: 在微服务上pom.xml 引入依赖 <dependency> <groupId>com.netflix.hystrix</groupId> <artifactId>hystrix-metrics-event-stream</artifactId> <version>1.5.18</v 阅读全文

posted @ 2020-06-26 11:36 顾~小诺 阅读(219) 评论(0) 推荐(0)

springCloud(十一) hystrix 超时设置
摘要:eureka: client: service-url: defaultZone: http://localhost:8761/eureka spring: application: name: member-service feign: hystrix: enabled: true client: 阅读全文

posted @ 2020-06-26 10:42 顾~小诺 阅读(807) 评论(0) 推荐(0)

springCloud(十) hystrix 和 openFeign 整合
摘要:#1.开启hystrix 添加了 openfeign 包 默认集成了 hystrix。只需要开启开关 server: port: 9080 spring: application: name: member-service-openfeign eureka: client: service-url: 阅读全文

posted @ 2020-06-13 23:05 顾~小诺 阅读(1750) 评论(0) 推荐(0)

springCloud(九) hystrix 和 restTemplate 整合
摘要:#1.pom.xml <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> </dependency> #2.启用 阅读全文

posted @ 2020-06-13 21:54 顾~小诺 阅读(403) 评论(0) 推荐(0)

springCloud(八) hystrix 简单流程图示
摘要:![](https://img2020.cnblogs.com/blog/2025974/202006/2025974-20200609222144940-872136906.png) ![](https://img2020.cnblogs.com/blog/2025974/202006/2025974-20200609223000469-964329787.png) ![](https://im 阅读全文

posted @ 2020-06-09 22:22 顾~小诺 阅读(225) 评论(0) 推荐(0)

springCloud(七) OpenFeign 通信日志-GET/POST请求
摘要:#1.开启通信日志-打印日志 1.1 日志级别 1.2 application.yml eureka: client: service-url: defaultZone: http://localhost:8761/eureka spring: application: name: member-s 阅读全文

posted @ 2020-06-02 21:30 顾~小诺 阅读(1541) 评论(0) 推荐(0)

springCloud(六) OpenFeign声明式通信
摘要:#1.Feign 和 openFeign 的区别 1.1 Feign 是一个开源声名式WebService框架 ,用于简化服务通信 1.2 Feign 采用 “接口” + "注解" 方式开发,屏蔽了网络通信的细节 1.3 OpenFeign 是springCloud 对 Feign 的加强,支持 S 阅读全文

posted @ 2020-06-01 22:39 顾~小诺 阅读(509) 评论(0) 推荐(0)

springCloud(五) RestTemplate通信 和 Ribbon 客户端负载均衡
摘要:#1.客户端负载均衡图解 #微服务端进行通信 使用RestTemplate 和 LoadBalanced 注解通信 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4 阅读全文

posted @ 2020-05-30 22:04 顾~小诺 阅读(428) 评论(0) 推荐(0)

springCloud(四) eureka 高可用
摘要:1: eureka 服务端配置 application.p8761.yml application.p8762.yml 注意:server1 和 server2 都映射到127.0.0.1 。 defaultZone 均写对方都eureka 地址 2: eureka 客户端配置 此时 高可用配置完成 阅读全文

posted @ 2020-05-21 22:35 顾~小诺 阅读(155) 评论(0) 推荐(0)

springCloud(三) eureka 名词概念 和 自我保护机制
摘要:名词解释 1: register 服务注册,向Eureka进行注册等级 2:Renew 服务续约 ,30秒/次 心跳包检查,90秒未收到 则剔除服务 3:Fetch Registried 获得服务注册列表 ,获取其他微服务地址 4:Cancel 服务下线,某个微服务通知注册中心下线 5:Evicti 阅读全文

posted @ 2020-05-21 21:33 顾~小诺 阅读(253) 评论(0) 推荐(0)

springCloud(二) eureka客户端搭建
摘要:1:pom.xml 2.applocation.yml 文件 3.启动类 4.效果图 阅读全文

posted @ 2020-05-20 22:37 顾~小诺 阅读(301) 评论(0) 推荐(0)

springCloud(一) eureka服务端搭建
摘要:#1: pom 文件 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta 阅读全文

posted @ 2020-05-20 22:04 顾~小诺 阅读(1240) 评论(0) 推荐(0)

导航