微服务
文章平均质量分 78
dingruibao
这个作者很懒,什么都没留下…
展开
-
微服务流控Sentinel3
为什么要流控 解决方案 超时机制 服务限流 服务熔断 服务降级 Sentinel工作原理原创 2022-01-08 20:13:19 · 345 阅读 · 0 评论 -
微服务网关Gateway4
核心概念 路由:网关中最基础的部分,路由信息包括一个id、一个目的URI、一组断言工厂、一组Filter组成。如果断言为真,则说明请求的URL和配置的路径匹配。 断言:Java8的断言函数,SpringCloud Gateway中的断言函数类型是Spring5.0框架中的ServerWebExchange。断言函数允许开发者定义匹配Http request中的任何信息,比如请求头和参数等。 过滤器:SpringCloud Gateway中filter...原创 2022-01-03 20:01:31 · 559 阅读 · 0 评论 -
微服务FeignClient2
目录 使用FeignClient feign日志配置 配置OkHttp 使用FeignClient consumer接口: @RestController @RequestMapping("/consumer/") public class ConsumerController { @Resource OrderFeignService orderFeignService; @GetMapping("findOrder") public ComR原创 2022-01-02 22:40:49 · 216 阅读 · 0 评论 -
微服务注册中心Nacos1
Nacos Server部署 源码下载地址:https://github.com/alibaba/nacos.git 下载安装包:https://github.com/alibaba/nacos/releases Linux/Unix/Mac启动命令(standalone代表着单机模式运行,非集群模式):sh startup.sh -m standalone Windows启动命令(standalone代表着单机模式运行,非集群模式):startup.cmd -m standalone ..原创 2022-01-01 20:07:04 · 91 阅读 · 0 评论