Examples tagged with leaky-bucketllms.txt

Select an example to explore it in the playground.

Beginner - Introductory Models
Intermediate - Classic Dynamics

Token Bucket vs Leaky Bucket Rate Limiting

A token bucket rate limiter passes a burst until its credits run out, then drops the rest; a leaky bucket turns the same burst into a smooth queue. One extra request, repeated, builds a long staircase of drops.

Level: Intermediate

queuerate-limitingtoken-bucketleaky-bucketthrottlingtraffic-shapingburstdiscrete-event

  • Stocks: token credits, leaky-bucket queue
  • Flows: arrivals, token-bucket admissions, token-bucket drops, leaky-bucket drain
  • Feedback Loops: credits refill and gate admission (balancing), queue drains at a fixed rate until empty (balancing)
  • Probes: token_drops_total, token_credits, token_bucket_output, leaky_bucket_output
Advanced - Complex Simulations