will lead to burst effect, * while having 100 KB objects for 1 MB/s should be smoothly handle by this TrafficShaping will lead to burst effect, * while having 100 KB objects for 1 MB/s should be smoothly handle by this TrafficShaping will lead to burst effect, * while having 100 KB objects for 1 MB/s should be smoothly handle by this TrafficShaping
流量整形(TrafficShaping):平滑网络流量,避免突发流量造成的拥塞。流量监管(TrafficPolicing):限制特定流量的速率,防止其占用过多带宽。
无论是漏桶、令牌桶,抑或其它变种算法,都可以看做是一种控制速度的限流,工程领域如Guava里的RateLimiter,Netty里的TrafficShaping等也都属于此。
StringEncoder(utf8)) .addLast("myClientHandler", new MyClientHandler()); } } 注意事项 ① 注意,trafficShaping