微服務學習14——zuul的限流

時機:請求被轉發之前調用 令牌桶限流: 令牌桶算法已經有開源的軟件了,google的開源工具,直接用google開發好的類即可: com.google.common.util.concurrent.RateLimiter;   其他部分是類似的: @Component public class RateLimitFilter extends ZuulFilter { private static
相關文章
相關標籤/搜索