# ratelimit **Repository Path**: zenhiss/ratelimit ## Basic Information - **Project Name**: ratelimit - **Description**: 接口限流token生产者 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-10-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ratelimit #### 介绍 令牌桶 接口限流token生产者 for laravel #### 使用说明 bucketConfig.ini 配置说明 [DEFAULT] 全局配置 bucketName = global redis的队列中的 key 名字 bucketSize = 100 桶的容量 rateLimit = 1 每秒生成令牌的数量 [pcSearch] bucketName = web_pc_indexcontroller:search # laravel 中 配合中间件消费者 统一命名的规则 bucketSize = 50 rateLimit = 15 快速开始 nohup python3 -u TokenMaker.py > run.log 2>&1 &