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

Taught in

References