48

Java并发:分布式应用限流 Redis + Lua 实践

 5 years ago
source link: https://juejin.im/post/5b7625e051882533122e1fc4
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
任何限流都不是漫无目的的,也不是一个开关就可以解决的问题,常用的限流算法有:令牌桶,漏桶。在之前的文章中,也讲到过,但是那是基于单机场景来写。 之前文章:接口限流算法:漏桶算法&令牌桶算法 然而再牛逼的机器,再优化的设计,对于特殊场景我们也是要特殊处理

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK