摘要:
收到多个客户端请求后,阻塞方法的性能显著下降。 而 Reactive 非阻塞方法的表现应该与请求数量无关,性能稳定 添加 Spring Boot WebFlux Starter 依赖 耗时比较 RestTemplate 调用耗时服务 由于 RestTemplate 是同步调用,调用 Endpoint 阅读全文
posted @ 2019-08-26 11:45
oc-long
阅读(1351)
评论(0)
推荐(0)
摘要:
首先写一个过滤器继承ZuulFilter ,然后重写其中的run()方法, 1、获取request对象的信息: RequestContext ctx = RequestContext.getCurrentContext(); HttpServletRequest request = ctx.getR 阅读全文
posted @ 2019-08-26 11:37
oc-long
阅读(2258)
评论(0)
推荐(0)

浙公网安备 33010602011771号