Giter Club home page Giter Club logo

rate-limiter's Introduction

rate-limiter简介

基于Raft算法构建的分布式限流服务
支持的限流策略:

  • 任意时刻max-inflight请求数不超过阈值
  • 一段时间内的访问次数限制, 类似于2000次/小时这样的

特性

  • 基于Raft算法分布式部署,多结点间数据强一致,可用性较高
  • 最快微秒级响应(纯内存模式)
  • 支持接口粒度的差异化控制
  • 支持多种语言SDK
  • 支持命令行工具管理资源

rate-limiter's People

Contributors

hurricanezwf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rate-limiter's Issues

所有对meta的操作抽象成事件串行化处理

随着并发量的提升,meta对象的锁竞争愈发激烈,性能下降严重。所以考虑将所有对meta的操作抽象成事件,放入到事件队列里,由单个协程负责meta逻辑。这样将锁前移到事件入队的时候,整个锁定时间也仅限于入队的时候,而不是单条事件的逻辑处理时间。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.