Streams do not process data until explicitly subscribed, conserving resources.
Reactive Streams are lazy, meaning they wait for a Subscriber to signal interest before processing data. This ensures that resources are not wasted on unneeded operations. For instance, a stream of email notifications would only be processed once a user subscribes to receive updates.
Additional Notes
Why is it important for streams to be lazy?
Track: Java
Topic: Reactive Streams
Focus: Publisher and Subscriber
Topics:JavaPublisher and SubscriberReactive Streams