evilk123 / throttle

just for test
MIT License
0 stars 0 forks source link

workerman基于Lua脚本Redis限流令牌桶中间件实例 #1

Open owenzhang24 opened 2 years ago

owenzhang24 commented 2 years ago

workerman基于Lua脚本Redis限流令牌桶中间件实例 - 腾讯云开发者社区-腾讯云 (tencent.com) https://cloud.tencent.com/developer/article/2013280 你看这个,现在中国开源博客都喜欢审核,还不通过,以后我就都在腾讯云上写博客了,你可以关注下

evilk123 commented 2 years ago

workerman基于Lua脚本Redis限流令牌桶中间件实例 - 腾讯云开发者社区-腾讯云 (tencent.com) https://cloud.tencent.com/developer/article/2013280 你看这个,现在中国开源博客都喜欢审核,还不通过,以后我就都在腾讯云上写博客了,你可以关注下

谢谢,已关注

evilk123 commented 2 years ago

workerman基于Lua脚本Redis限流令牌桶中间件实例 - 腾讯云开发者社区-腾讯云 (tencent.com) https://cloud.tencent.com/developer/article/2013280 你看这个,现在中国开源博客都喜欢审核,还不通过,以后我就都在腾讯云上写博客了,你可以关注下

原插件是 滑动窗口法,相比令牌桶法,有一定的缺陷,但对于大多数应用,也足够了

owenzhang24 commented 2 years ago

workerman基于Lua脚本Redis限流令牌桶中间件实例 - 腾讯云开发者社区-腾讯云 (tencent.com) https://cloud.tencent.com/developer/article/2013280 你看这个,现在中国开源博客都喜欢审核,还不通过,以后我就都在腾讯云上写博客了,你可以关注下

谢谢,已关注

客气了,嘻嘻,希望可以帮到你,有问题可以联系我邮箱,owen@owenzhang.com

owenzhang24 commented 2 years ago

是的

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年7月21日(星期四) 上午10:22 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [evilk123/throttle] workerman基于Lua脚本Redis限流令牌桶中间件实例 (Issue #1)

workerman基于Lua脚本Redis限流令牌桶中间件实例 - 腾讯云开发者社区-腾讯云 (tencent.com) https://cloud.tencent.com/developer/article/2013280 你看这个,现在中国开源博客都喜欢审核,还不通过,以后我就都在腾讯云上写博客了,你可以关注下

原插件是 滑动窗口法,相比令牌桶法,有一定的缺陷,但对于大多数应用,也足够了

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

owenzhang24 commented 2 years ago

你可以在原来基础上 在优化,根据自己的业务场景来优化,都是可以,然后到时候分享给我,嘻嘻

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年7月21日(星期四) 上午10:22 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [evilk123/throttle] workerman基于Lua脚本Redis限流令牌桶中间件实例 (Issue #1)

workerman基于Lua脚本Redis限流令牌桶中间件实例 - 腾讯云开发者社区-腾讯云 (tencent.com) https://cloud.tencent.com/developer/article/2013280 你看这个,现在中国开源博客都喜欢审核,还不通过,以后我就都在腾讯云上写博客了,你可以关注下

原插件是 滑动窗口法,相比令牌桶法,有一定的缺陷,但对于大多数应用,也足够了

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

evilk123 commented 2 years ago

workerman基于Lua脚本Redis限流令牌桶中间件实例 - 腾讯云开发者社区-腾讯云 (tencent.com) https://cloud.tencent.com/developer/article/2013280 你看这个,现在中国开源博客都喜欢审核,还不通过,以后我就都在腾讯云上写博客了,你可以关注下

谢谢,已关注

客气了,嘻嘻,希望可以帮到你,有问题可以联系我邮箱,owen@owenzhang.com

你优化的那段lua代码,跟原插件的,一样呢?

owenzhang24 commented 2 years ago

我写的和我博客笔记文章一样,你看看我文章

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年7月21日(星期四) 上午10:25 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [evilk123/throttle] workerman基于Lua脚本Redis限流令牌桶中间件实例 (Issue #1)

workerman基于Lua脚本Redis限流令牌桶中间件实例 - 腾讯云开发者社区-腾讯云 (tencent.com) https://cloud.tencent.com/developer/article/2013280 你看这个,现在中国开源博客都喜欢审核,还不通过,以后我就都在腾讯云上写博客了,你可以关注下

谢谢,已关注

@.***

你优化的那段lua代码,跟原插件的,一样呢?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

evilk123 commented 2 years ago

我写的和我博客笔记文章一样,你看看我文章 ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年7月21日(星期四) 上午10:25 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [evilk123/throttle] workerman基于Lua脚本Redis限流令牌桶中间件实例 (Issue #1) workerman基于Lua脚本Redis限流令牌桶中间件实例 - 腾讯云开发者社区-腾讯云 (tencent.com) https://cloud.tencent.com/developer/article/2013280 你看这个,现在中国开源博客都喜欢审核,还不通过,以后我就都在腾讯云上写博客了,你可以关注下 谢谢,已关注 @. 你优化的那段lua代码,跟原插件的,一样呢? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

就是看了你的文章 https://cloud.tencent.com/developer/article/2013280 里面的那段lua代码跟原插件的lua代码,是一样的