04 Try it yourself Interactive

One budget or one budget per server?

Five requests from one client arrive in the same fixed window. Compare two local counters with one shared atomic counter.

Local counters
Small deterministic teaching model
Choose a preset, predict the outcome, then use Next, Back or Reset. No steps autoplay.
choose request's application instanceincrement the chosen logical counterallow only when counter <= 3record the accepted total
Press Next to work through it one step at a time.
Requests–
Accepted–
Denied–
Budget–
step 0 / 0