A Publisher emits data, completion, or error signals to a Subscriber.
In Reactive Streams, the Publisher is responsible for pushing data to a Subscriber. It can send data items one by one via onNext(), and eventually signal completion with onComplete() or an error with onError(). For example, a service that sends stock prices would act as a Publisher, pushing price updates to any connected clients (Subscribers).
Additional Notes
What role does a Publisher play in Reactive Streams?
Track: Java
Topic: Reactive Streams
Focus: Publisher and Subscriber
Topics:JavaPublisher and SubscriberReactive Streams