Hot and cold

There are two categories of reactive sequences—hot and cold. These functions affect the usage of the implementation directly. Hence, we need to understand them:

  • Cold: The cold publishers start to generate data only if it receives a new subscription. If there are no subscriptions, the data never comes to the flow.
  • Hot: The hot publishers do not need any subscribers to generate the data flow. When the new subscriber is registered, the subscriber will only get the new data elements emitted.

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.