concept pressure in category akka

appears as: pressure
Reactive Web Applications: With Play, Akka, and Reactive Streams

This is an excerpt from Manning's book Reactive Web Applications: With Play, Akka, and Reactive Streams.

In a system without back pressure, if the subscriber is slower than the publisher, then eventually the stream will stop—either because one of the parties runs out of memory and one of its buffers overflows or because the implementation can detect this situation but doesn’t know to stop sending or accepting data until the situation is resolved (if it can be resolved at all). Although the latter scenario is somewhat more positive than the former, blocking back pressure (the capability of a system to detect when it must slow down and to do so by blocking) brings with it all of the disadvantages of a blocking system, which occupies resources such as thread and memory usage.

Reactive Streams defines a methodology for allowing nonblocking back pressure: subscribers communicate with publishers to prevent the system as a whole getting overwhelmed without holding on to precious resources to do so.