摘要: 对应nginx接入层限流可以使用Nginx自带的两个模块: 连接数限流模块ngx_http_limit_conn_module: 漏桶算法实现的请求限流模块ngx_http_limit_req_module ngx_http_limit_conn_module 对于一些服务器流量异常、负载过大,甚至 阅读全文
posted @ 2020-07-03 10:41 ZhiJi&Ethan 阅读(672) 评论(0) 推荐(0) 编辑
摘要: RateLimiter是Guava的concurrent包下的一个用于限制访问频率的类. 1.限流 每个API接口都是有访问上限的,当访问频率或者并发量超过其承受范围时候,我们就必须考虑限流来保证接口的可用性或者降级可用性.即接口也需要安装上保险丝,以防止非预期的请求对系统压力过大而引起的系统瘫痪. 阅读全文
posted @ 2020-07-03 10:38 ZhiJi&Ethan 阅读(1004) 评论(0) 推荐(1) 编辑
摘要: Bubble Sort Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in wrong order. Example: 阅读全文
posted @ 2020-06-24 16:09 ZhiJi&Ethan 阅读(144) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/web_csdn_share/article/details/79243308 下面是我整理的常用 Git 命令清单。几个专用名词的译名如下。 Workspace:工作区 Index / Stage:暂存区 Repository:仓库区(或本地仓库) Re 阅读全文
posted @ 2020-06-23 15:28 ZhiJi&Ethan 阅读(52) 评论(0) 推荐(0) 编辑