juice icon indicating copy to clipboard operation
juice copied to clipboard

Java后端开发库,涵盖:常用工具类、SPI扩展、分布式锁、限流、分布式链路追踪等。

Results 2 juice issues
Sort by recently updated
recently updated
newest added

Bumps [aws-java-sdk-s3](https://github.com/aws/aws-sdk-java) from 1.11.552 to 1.12.261. Changelog Sourced from aws-java-sdk-s3's changelog. 1.12.261 2022-07-14 AWS Config Features Update ResourceType enum with values for Route53Resolver, Batch, DMS, Workspaces, Stepfunctions, SageMaker, ElasticLoadBalancingV2, MSK...

dependencies

## 漏桶算法 想象有一个水桶,水桶以一定的速度出水(以一定速率消费请求),当水流速度过大水会溢出(访问速率超过响应速率,就直接拒绝)。 漏桶算法的两个变量: * 水桶漏洞的大小:rate * 最多可以存多少的水:burst ## 令牌桶算法 系统按照恒定间隔向水桶里加入令牌(Token),如果桶满了的话,就不加了。每个请求来的时候,会拿走1个令牌,如果没有令牌可拿,那么就拒绝服务。 ## 参考资料 * [Stripe - Scaling your API with rate limiters](https://stripe.com/blog/rate-limiters) * [Stripe - Redis Rate Limiter 实现](https://gist.github.com/ptarjan/e38f45f2dfe601419ca3af937fff574d) *...