टोकनकुम्भधर्मः। परिपथभङ्गे (१६ नव) पथरोधः। अत्र नित्यप्रवाहः कथं मितः। token bucket, burst, 429। न केवलं shed; कुम्भधर्मः

English (minimizable)

After circuit breakers (16 Nov), this post covers token-bucket rate limiting: refill and burst knobs, fixed-window and leaky contrasts, key design, distributed stores, 429 signals, weighted costs and edge plus service layers versus shed and backpressure.

पूर्ण-शीर्षकम् / Full title

टोकनकुम्भधर्मः: A Metrical Codification of Token Buckets (with English glosses)

English · overview and topics (minimizable)

What this post is about

Token buckets bound average admission rate while permitting configured bursts by spending and refilling tokens.

Topics covered

  1. Bounded average flow
  2. Refill and burst knobs
  3. vs fixed window cliffs
  4. vs leaky bucket shaping
  5. Fair rate keys
  6. Distributed shared state
  7. 429 and Retry-After
  8. Cost-weighted tokens
  9. Edge and service layers
  10. Shed vs bucket vs backpressure

Sanskrit title

टोकनकुम्भधर्मः = ṭokan-kumbha-dharmaḥ “dharma of the token pot”.

English

Minimizable; Sanskrit-first.

परम्परा-सन्धिः / Series links
पूर्वं / Prior अत्र / Adds न पुनः / Does not repeat
परिपथभङ्गधर्मः (१६ नव) breaker sick path
भारत्यागधर्मः (५ नव) shed overload
प्रतिदाबधर्मः (७ अक्टो) backpressure slow senders
पार्श्वरोधधर्मः (१५ नव) bulkhead capacity walls
इदम् token bucket quotas -
ग्राह्य-त्याज्य-विवेकः / Keep and avoid

ग्राह्यम् / Keep

१. set refill and burst: two explicit knobs
२. prefer token/sliding: over naive fixed window alone
३. design fair keys: user tenant route
४. shared store multi-node: no N× bypass
५. return 429+Retry-After: honest clients
६. weight heavy ops: more tokens
७. limit edge and service: defense layers

त्याज्यम् / Avoid

  • per-pod limits only on 50 replicas without shared state
  • silent drop with no 429
  • same token cost for ping and full export
अध्याय-योजना / Chapter plan
प्रकरणम् विषयः छन्दः श्लोकाः
मङ्गलं बीजं च / Opening अनुष्टुभ्
मूलतत्त्वानि / Core अनुष्टुभ्
मुख्यविधिः / Method उपजाति
रक्षा · विधिः / Guards अनुष्टुभ्
विवेक · सीमा / Judgment अनुष्टुभ्
पूर्वसन्धिः / Series links उपजाति
उपसंहारः / Close अनुष्टुभ्
पारिभाषिक-कोशः / Glossary
Modern English संस्कृतम् Note
token bucket टोकनकुम्भः  
refill rate पूरणदरः  
burst स्फोटक्षमा  
fixed window स्थिरखिडकी  
leaky bucket स्रवितकुम्भः  
429 अतिदरअस्वीकारः  
Retry-After पुनःप्रयाससूचना  
weighted token भारटोकन्  
rate key दरकुञ्चिका  
quota कोटा / quota  

श्लोकः १ (अनुष्टुभ्)

अनन्तप्रवेशः यदि क्षणेन पतति तदा मूलं दह्यते ।
टोकनकुम्भधर्मस्तस्माद् मितप्रवाहः ॥१॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
अनन्तप्रवेशः यदि क्षणेन पतति तदा मूलं दह्यते । टोकनकुम्भधर्मस्तस्माद् मितप्रवाहः ॥१॥

Word-for-word

संस्कृतपदम् Word-for-word English
अनन्तप्रवेशः endless entry
क्षणेन in a moment
पतति falls
मूलम् root
दह्यते burns
टोकनकुम्भधर्मः token-bucket dharma
मितप्रवाहः measured flow

Gloss table

पदम् अर्थः / sense
टोकनकुम्भधर्मः token-bucket dharma
मितप्रवाहः measured flow

English sense
Token buckets admit work only when tokens exist so average rate stays bounded while short bursts remain possible.

Context / topic
Topic: why token bucket. Distinct from load shed under overload and from simple fixed windows.

वृत्तमिति: ८-८-८-८।

श्लोकः २ (अनुष्टुभ्)

refill rate + burst capacity ।
rate-only no burst कठोरम् ॥२॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
refill rate + burst capacity । rate-only no burst कठोरम् ॥२॥

Word-for-word

संस्कृतपदम् Word-for-word English
refill refill
rate rate
burst burst
capacity capacity
rate-only rate only
no no
burst burst
कठोरम् harsh

Gloss table

पदम् अर्थः / sense
refill and burst two knobs
rate-only no spike room

English sense
Set sustained refill and maximum burst separately. Many APIs need brief spikes above the long-run mean.

Context / topic
Topic: knobs.

वृत्तमिति: ८-८-८-८।

श्लोकः ३ (अनुष्टुभ्)

fixed window easy boundary burst ।
token smoother edges ॥३॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
fixed window easy boundary burst । token smoother edges ॥३॥

Word-for-word

संस्कृतपदम् Word-for-word English
fixed fixed
window window
easy easy
boundary boundary
burst burst
token token
smoother smoother
edges edges

Gloss table

पदम् अर्थः / sense
fixed window clock edge double
token smoother steady

English sense
Fixed windows allow double-rate at boundaries. Token and sliding designs smooth those cliffs.

Context / topic
Topic: vs fixed window.

वृत्तमिति: ८-८-८-८।

श्लोकः ४ (अनुष्टुभ्)

leaky bucket smooths shape ।
token allows controlled burst ॥४॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
leaky bucket smooths shape । token allows controlled burst ॥४॥

Word-for-word

संस्कृतपदम् Word-for-word English
leaky leaky
bucket bucket
smooths smooths
shape shape
token token
allows allows
controlled controlled
burst burst

Gloss table

पदम् अर्थः / sense
leaky constant outflow
token burst-friendly

English sense
Choose leaky buckets when you must reshape traffic; token buckets when bursts are legitimate.

Context / topic
Topic: vs leaky.

वृत्तमिति: ८-८-८-८।

श्लोकः ५ (उपजाति)

key: user IP tenant route
स्पष्टम् ।
one global key
अन्यायः ॥५॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
key: user IP tenant route स्पष्टम् । one global key अन्यायः ॥५॥

Word-for-word

संस्कृतपदम् Word-for-word English
key key
user user
IP IP
tenant tenant
route route
स्पष्टम् clear
one one
global global
key key
अन्यायः injustice

Gloss table

पदम् अर्थः / sense
key design who is limited
one global unfair

English sense
Rate keys define fairness. Global-only keys let one tenant starve others; too fine keys explode state.

Context / topic
Topic: keys.

वृत्तमिति: एकादशाक्षराः पादाः।

श्लोकः ६ (अनुष्टुभ्)

distributed bucket needs shared store ।
per-node only residual bypass ॥६॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
distributed bucket needs shared store । per-node only residual bypass ॥६॥

Word-for-word

संस्कृतपदम् Word-for-word English
distributed distributed
bucket bucket
shared shared
store store
per-node per-node
only only
residual residual
bypass bypass

Gloss table

पदम् अर्थः / sense
shared store cluster fair
per-node only N times limit

English sense
Multi-instance gateways need Redis or similar for shared counts or they multiply the effective limit by replica count.

Context / topic
Topic: distributed.

वृत्तमिति: ८-८-८-८।

श्लोकः ७ (अनुष्टुभ्)

return 429 + Retry-After + remaining ।
silent drop client storm ॥७॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
return 429 + Retry-After + remaining । silent drop client storm ॥७॥

Word-for-word

संस्कृतपदम् Word-for-word English
return return
429 429
Retry-After Retry-After
remaining remaining
silent silent
drop drop
client client
storm storm

Gloss table

पदम् अर्थः / sense
honest headers client backoff
silent drop retry storm

English sense
Tell clients they are limited and when to retry. Silent drops invite aggressive client loops.

Context / topic
Topic: client signals.

वृत्तमिति: ८-८-८-८।

श्लोकः ८ (अनुष्टुभ्)

cost-weighted tokens for heavy ops ।
one-count unequal work ॥८॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
cost-weighted tokens for heavy ops । one-count unequal work ॥८॥

Word-for-word

संस्कृतपदम् Word-for-word English
cost-weighted cost-weighted
tokens tokens
heavy heavy
ops ops
one-count one count
unequal unequal
work work

Gloss table

पदम् अर्थः / sense
weighted cost fair CPU
one-count cheap=expensive

English sense
Charge more tokens for expensive endpoints so a heavy export cannot equal a cheap ping in cost.

Context / topic
Topic: weighted cost.

वृत्तमिति: ८-८-८-८।

श्लोकः ९ (अनुष्टुभ्)

edge limit + service limit defense ।
only edge bypass internal ॥९॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
edge limit + service limit defense । only edge bypass internal ॥९॥

Word-for-word

संस्कृतपदम् Word-for-word English
edge edge
limit limit
service service
limit limit
defense defense
only only
edge edge
bypass bypass
internal internal

Gloss table

पदम् अर्थः / sense
defense layers edge and service
only edge internal flood

English sense
Limit at the edge and again per service for internal fans. Edge-only leaves service-to-service floods free.

Context / topic
Topic: layers.

वृत्तमिति: ८-८-८-८।

श्लोकः १० (उपजाति)

भारत्याग overload drop
टोकन steady quota ।
प्रतिदाबः
slow send ॥१०॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
भारत्याग overload drop टोकन steady quota । प्रतिदाबः slow send ॥१०॥

Word-for-word

संस्कृतपदम् Word-for-word English
भारत्याग load shed
overload overload
drop drop
टोकन token
steady steady
quota quota
प्रतिदाबः backpressure
slow slow
send send

Gloss table

पदम् अर्थः / sense
भारत्याग load shed
प्रतिदाबः backpressure

English sense
Load shed is emergency overload triage; token buckets are steady quotas; backpressure slows producers. Different timescales same family.

Context / topic
Topic: series distinctions.

सन्धिः: त्याग आपात; कुम्भ नित्यकोटा; दाब मन्दनम्

वृत्तमिति: एकादशाक्षराः पादाः।

श्लोकः ११ (अनुष्टुभ्)

knobs keys shared signals weight layers पञ्चकम् ।
एभिष्टोकनकुम्भधर्मो मितप्रवाहसमन्वितः ॥११॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
knobs keys shared signals weight layers पञ्चकम् । एभिष्टोकनकुम्भधर्मो मितप्रवाहसमन्वितः ॥११॥

Word-for-word

संस्कृतपदम् Word-for-word English
knobs knobs
keys keys
shared shared
signals signals
weight weight
layers layers
पञ्चकम् five-set

Gloss table

पदम् अर्थः / sense
पञ्चकम् knobs keys shared signals weight layers

English sense
Five limbs: refill and burst knobs, fair keys, shared distributed state, honest 429 signals and weighted multi-layer limits.

Context / topic
Topic: checklist.

वृत्तमिति: ८-८-८-८।

श्लोकः १२ (अनुष्टुभ्)

इति टोकनकुम्भधर्मसारो मितप्रवाहसमन्वितः ।
मितं प्रवेशं क्रियायोग्यं तन्त्रधर्मः स उच्यते ॥१२॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
इति टोकनकुम्भधर्मसारो मितप्रवाहसमन्वितः । मितं प्रवेशं क्रियायोग्यं तन्त्रधर्मः स उच्यते ॥१२॥

Word-for-word

संस्कृतपदम् Word-for-word English
इति thus
टोकनकुम्भधर्मसारः token-bucket essence
मितप्रवाहः measured flow
मितम् measured
प्रवेशम् entry
क्रियायोग्यम् operable
तन्त्रधर्मः system dharma

Gloss table

पदम् अर्थः / sense
मितं प्रवेशम् measured admission
तन्त्रधर्मः platform dharma

English sense
Closing: meter the flow, allow honest bursts and tell the client when the bucket is dry.

Context / topic
Topic: close.

उपसंहारन्यायः: टोकन् देहि; स्फोटं मय; ४२९ सत्यं वद।

वृत्तमिति: ८-८-८-८।

श्लोकसूची / Verse index

१. Why bucket
२. Knobs
३. vs window
४. vs leaky
५. Keys
६. Distributed
७. Signals
८. Weighted
९. Layers
१०. Series
११. Five limbs
१२. Close

सन्दर्भाः / References
  1. Prior: circuit breaker 2026-11-16; load shed 2026-11-05; backpressure 2026-10-07.
  2. Domain: token-bucket rate limiting.
  3. English minimizable; Sanskrit-first.
  4. Style: no em dash; no Oxford comma in English clauses.