tinywan / webman-limit-traffic Goto Github PK
View Code? Open in Web Editor NEWbased on lua script limiting and controlling traffic for webman plugin
Home Page: https://www.workerman.net/plugin/37
License: MIT License
based on lua script limiting and controlling traffic for webman plugin
Home Page: https://www.workerman.net/plugin/37
License: MIT License
我用你的 然后自己实现了,这样就不用下载扩展包,哈哈,大家可以参考看看
https://my.oschina.net/owenzhang24/blog/5522757
换了官方源,阿里源(知道不更新),腾讯源,华为源等等,都安装失败。
官方源给的提示是:
Could not find package tinywan/limit-traffic. It was however found via repository search, which
indicates a consistency issue with the repository.
这个包,是使用的滑动窗口法吗?
比如A接口200/s B接口50/s
目前,触发了限流,返回的结构如下
{
"code": 0,
"msg": "Too Many Requests",
"data": null
}
因为我们的项目有标准的统一输出
如果可以自定义返回内容,就更完美了
谢谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.