![](https://img-blog.csdnimg.cn/20190918140145169.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
微服务
文章平均质量分 50
微服务相关
Java超神之路
这个作者很懒,什么都没留下…
展开
-
微服务-hystrix请求缓存
一次controller调用中,多次调用service @GetMapping("/cache-annotation-01") public List<ServiceInstance> useCacheByAnnotation01(@RequestParam String serviceId) { log.info("use cache by annotation01(controller) to get nacos client info: [{}]",原创 2022-03-05 06:08:43 · 554 阅读 · 0 评论 -
微服务-Ribbon,OpenFeign
使用配置 /** * <h1>使用 Ribbon 之前的配置, 增强 RestTemplate</h1> * */ @Component public class RibbonConfig { /** * <h2>注入 RestTemplate</h2> * */ @Bean @LoadBalanced public RestTemplate restTemplate() { retur原创 2022-03-03 11:26:33 · 354 阅读 · 0 评论 -
微服务网关
通过网关代理微服务请求,网关是微服务对外暴露的唯一入口 springcloudGateway zuul 可以把流量控制,请求过滤放到网关去做 springcloudGateway 基础功能路由转发 springcloudGateway工作模型图示及解读 请求发送到网关,经路由分发器将请求匹配到相应的HandlerMapping 请求和处理器之间有个映射,路由到网关处理程序,即WebHandler 执行特定的请求过滤器 最终到达代理的微服务 ...原创 2022-02-19 10:35:08 · 337 阅读 · 0 评论