issues
search
AlfieriChou
/
alfierichou.github.io
AlfieriChou的博客
https://alfierichou.com
4
stars
0
forks
source link
消息/访问限流
#13
Open
AlfieriChou
opened
2 years ago
AlfieriChou
commented
2 years ago
限流:多长时间执行多少次逻辑
使用redis等存储介质 (适用于单实例多实例) 例如:设置一个自增值,过期时间设置为所需的时间,将自增的值与限制的值做对比,如果小于则执行逻辑,如果大于直接结束
限流:多长时间执行多少次逻辑