使用RateLimiter完成简单的大流量限流

公司券系统压力过大,采用了限流的方法。html public Integer couponSendWithLimiter(CouponLogQC couponLogQC) { //限制每秒请求数 30秒每一个用户只能请求一次 String uniqueCode = this.uniqueCode(couponLogQC); boolean isDuplicated = de
相关文章
相关标签/搜索