use sliding buffer in throttle example