26 lines
389 B
Markdown
26 lines
389 B
Markdown
# Leaky Bucket
|
|
|
|
Given a stream of requests,
|
|
|
|
* enqueue up to N
|
|
* discard excess of N
|
|
* drain at rate R
|
|
|
|
## Goals
|
|
|
|
### hold vs. tap
|
|
|
|
### emits system signal to pid
|
|
|
|
inter-process
|
|
|
|
### rust
|
|
|
|
:)
|
|
|
|
### heatmap from stream for button push simulation
|
|
|
|
* Dugdug twitch chat turns into a threshold to activate buttons
|
|
* emit at rate R while queue is of length M
|
|
* incoming items count as C entries
|