credit-based flow control
A scheme where a consumer grants the producer a number of credits, and the producer may only send that many messages before waiting for more.
In more detail
It lets a stream carry backpressure, so a fast producer cannot fill a slow consumer's memory. HTTP/2 and gRPC streams use window-based flow control, a form of this idea.
Related terms
- backpressure — A slow consumer signalling a fast producer to pause, so data does not pile up in memory faster than it can be handled.
- buffer — A region of memory that holds data temporarily while it is being moved or collected.
Taught in
- Backpressure And Load Shedding — Scalable System Design & Distributed Architecture