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