Let at most L requests through per W seconds: a fixed window counter (simple, but a burst slips through at a window edge), a sliding log (exact, one time kept per request), a sliding window counter (an estimate from two counts) and a token bucket, on the same request times.
This interactive visualization needs JavaScript.