Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M4578

Token Bucket

Token Bucket
SystemsHigh supportSystems Theory
Included
account_tree

Version 1.0.0 · Updated 2026-07-30

CORE DEFINITION

An algorithm that fills a "bucket" with tokens at a fixed rate. Each data packet must consume a token to be sent. If the bucket is empty, it must wait for new tokens to be generated. This allows more data to be sent during bursts, but the long-term average rate is limited.

SCAFFOLDING EFFECT

psychology

Reduce cognitive load

Smooth burst traffic. In resource allocation, it is necessary to ensure fairness (long-term average rate) while allowing occasional "sprints" (burst traffic). This is the core idea of all "elastic" quota systems.

anchor

Anchor fast decisions

Tokens are added to the bucket at a fixed rate. Each request consumes one token; if the bucket is empty, requests are rate-limited or queued. The bucket capacity allows short bursts, while the long-term average rate is constrained by the fill rate, balancing fairness and elasticity.

MINIMUM ACTION

In progress 0/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%
account_treeGenealogyexpand_more
menu_bookReferencesexpand_more

Source support: Explicit

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Token_bucketZH · Explicit
    verified

RELATED MODELS