I chose computer science as my major (undergraduate) and I have 6 months left to start as a freshman. Where should I start? I want to prepare or be one step further before class starts.
令牌桶限流的原理是系统以一个恒定的速度往固定容量的桶里放入令牌,当有请求进来时,需要先从桶里获取并消耗一个令牌,当桶里没有令牌可取时,则拒绝服务或让请求等待。