rate estimator and token bucket throttler