基于Raft算法构建的分布式限流服务
支持的限流策略:
- 任意时刻max-inflight请求数不超过阈值
- 一段时间内的访问次数限制, 类似于2000次/小时这样的
- 基于Raft算法分布式部署,多结点间数据强一致,可用性较高
- 最快微秒级响应(纯内存模式)
- 支持接口粒度的差异化控制
- 支持多种语言SDK
- 支持命令行工具管理资源
基于Raft算法构建的分布式限流服务
License: Apache License 2.0
某些接口可能会有2000次/小时这样的限制,如果只支持配置每秒的访问量并不能满足要求,所以在注册资源的时候需要加一个时间粒度
随着并发量的提升,meta对象的锁竞争愈发激烈,性能下降严重。所以考虑将所有对meta的操作抽象成事件,放入到事件队列里,由单个协程负责meta逻辑。这样将锁前移到事件入队的时候,整个锁定时间也仅限于入队的时候,而不是单条事件的逻辑处理时间。
目前单次请求,机械盘写文件的延迟太高了60ms+, 写内存延迟1ms左右, SSD盘写文件延迟2~3ms
短链接会消耗大量的网络时间,想通过长连接来提升网络效率
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.