educative.io

Educative

Fixed Window and Rolling window has same problem

@Design_Gurus I am wondering how rolling window will solve boundary burst problem that fixed window is facing.

> For example, if there are two messages sent at the 300th millisecond and 400th millisecond of a second, we’ll count them as two messages from the 300th millisecond of that second up to the 300th millisecond of next second.

So in above statement imagine you get 3 request at 301millisecond, 302, 303 in next second … so you will reset and start counting again from 301th millisecond. so this will create the same problem right ? …having request closer to earlier window and request closer to start of next window.