Counts hits per key in fixed windows, so the server can refuse a key that asks too often. Any shared counter can stand behind it, such as the app's store (the default), Redis, or a single process's memory.
Count a hit on a key, unless its window is already full, and say whether it was allowed.
Say whether a key's window is full, without counting a hit.
Counts hits per key in fixed windows, so the server can refuse a key that asks too often. Any shared counter can stand behind it, such as the app's store (the default), Redis, or a single process's memory.