All books

Professional

Apps About Coach Log in Start reading

Quantitative Finance · Glossary

What is Token bucket?

Definition 21.3 Low-Latency Software · Chapter 21 — Order Gateway and Order Management

A token bucket is a rate limiter that holds up to bb tokens and gains rr tokens a second; a message may be sent only if a token is available, and sending it spends one. It allows bursts of up to bb messages and, over any interval of length TT, at most b+rTb + rT messages.

Read in context →