提供三种单机限速的方案,未经线上大量验证方法1,guava的RateLimitor方法2:guava的loadCache方法3:定时任务加原子变量github: https://github.com/lebron374/RateLimiterDemo