throttle:分布式系统的信号灯服务-源码

上传者: 42160645 | 上传时间: 2021-03-21 13:12:23 | 文件大小: 80KB | 文件类型: ZIP
风门 分布式系统的信号灯。 动机 Throttle通过http界面将信号量作为服务提供。顾名思义,主要用例是通过使系统的元素首先请求许可(即获取租约)来限制系统对资源的访问。如果系统由运行在不同计算机上的多个进程或同一网络中的虚拟机组成,那么节流可能会适得其反。 Throttle的目标是易于操作,在极端情况下行为良好,并且无需持久化后端即可工作。 特征 服务器可在Windows,Linux和OS-X上构建并运行。 客户群 Python:具有阻止API的高级客户端。 Rust:具有异步API的低级客户端。 通过强制执行锁定层次结构来防止死锁。 公平(等待时间更长的同伴享有优先权) 大数量的锁不会被很多小数量的锁饿死。 抵御网络中断。 锁将过期,以防止由于网络错误或客户端崩溃而导致信号量计数泄漏。 可以使用发送到服务器的心跳来无限期延长锁定。 可观察性 普罗米修斯度量 登录到Stderr或

文件下载

资源详情

[{"title":"( 55 个子文件 80KB ) throttle:分布式系统的信号灯服务-源码","children":[{"title":"throttle-master","children":[{"title":".cargo","children":[{"title":"config <span style='color:#111;'> 91B </span>","children":null,"spread":false}],"spread":true},{"title":"Cargo.toml <span style='color:#111;'> 196B </span>","children":null,"spread":false},{"title":".flake8 <span style='color:#111;'> 28B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"FUNDING.yml <span style='color:#111;'> 722B </span>","children":null,"spread":false},{"title":"workflows","children":[{"title":"linux_wheel.yml <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"rustpublish.yml <span style='color:#111;'> 505B </span>","children":null,"spread":false},{"title":"macos_wheel.yml <span style='color:#111;'> 720B </span>","children":null,"spread":false},{"title":"pythonpublish.yml <span style='color:#111;'> 890B </span>","children":null,"spread":false},{"title":"windows_wheel.yml <span style='color:#111;'> 728B </span>","children":null,"spread":false},{"title":"on_push.yml <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Readme.md <span style='color:#111;'> 9.39KB </span>","children":null,"spread":false},{"title":"Cargo.lock <span style='color:#111;'> 52.96KB </span>","children":null,"spread":false},{"title":"python_client","children":[{"title":"test-requirements.txt <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"throttle_client","children":[{"title":"peer.py <span style='color:#111;'> 5.69KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 5.01KB </span>","children":null,"spread":false},{"title":"client.py <span style='color:#111;'> 9.58KB </span>","children":null,"spread":false},{"title":"status_code.py <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 744B </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"test_peer.py <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"test_lock.py <span style='color:#111;'> 6.36KB </span>","children":null,"spread":false},{"title":"test_pickle.py <span style='color:#111;'> 268B </span>","children":null,"spread":false},{"title":"test_server_client.py <span style='color:#111;'> 10.14KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 90B </span>","children":null,"spread":false}],"spread":true},{"title":"rust_client","children":[{"title":"Cargo.toml <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"error.rs <span style='color:#111;'> 800B </span>","children":null,"spread":false},{"title":"client.rs <span style='color:#111;'> 8.97KB </span>","children":null,"spread":false},{"title":"lib.rs <span style='color:#111;'> 183B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"CONTRIBUTING.md <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 4.34KB </span>","children":null,"spread":false},{"title":"throttle.toml <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 74B </span>","children":null,"spread":false},{"title":"server","children":[{"title":"Cargo.toml <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"state.rs <span style='color:#111;'> 21.37KB </span>","children":null,"spread":false},{"title":"error.rs <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"main.rs <span style='color:#111;'> 3.66KB </span>","children":null,"spread":false},{"title":"litter_collection.rs <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false},{"title":"favicon.ico <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"application_cfg.rs <span style='color:#111;'> 6.37KB </span>","children":null,"spread":false},{"title":"logging.rs <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"favicon.rs <span style='color:#111;'> 469B </span>","children":null,"spread":false},{"title":"semaphore_service.rs <span style='color:#111;'> 5.59KB </span>","children":null,"spread":false},{"title":"cli.rs <span style='color:#111;'> 753B </span>","children":null,"spread":false},{"title":"wakers.rs <span style='color:#111;'> 3.30KB </span>","children":null,"spread":false},{"title":"version.rs <span style='color:#111;'> 127B </span>","children":null,"spread":false},{"title":"404.html <span style='color:#111;'> 171B </span>","children":null,"spread":false},{"title":"health.rs <span style='color:#111;'> 548B </span>","children":null,"spread":false},{"title":"not_found.rs <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"metrics.rs <span style='color:#111;'> 901B </span>","children":null,"spread":false},{"title":"leases.rs <span style='color:#111;'> 19.86KB </span>","children":null,"spread":false}],"spread":false},{"title":"tests","children":[{"title":"client.rs <span style='color:#111;'> 11.88KB </span>","children":null,"spread":false},{"title":"common.rs <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"Changelog.md <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明