In the Reactive Streams specification, a Publisher generates data and sends it to a Subscriber. The Subscriber processes the data and controls the flow using backpressure. This ensures system stability by requesting only what it can handle. For instance, a live price feed Publisher might emit price updates, while a Subscriber could be a dashboard that displays these prices, controlling the rate to prevent overload.
Additional Notes
Reactive Streams Specification: Publisher and Subscriber?