微服务学习14——zuul的限流

时机:请求被转发之前调用 令牌桶限流: 令牌桶算法已经有开源的软件了,google的开源工具,直接用google开发好的类即可: com.google.common.util.concurrent.RateLimiter;   其他部分是类似的: @Component public class RateLimitFilter extends ZuulFilter { private static
相关文章
相关标签/搜索