Types of Streams
In this lesson, you will learn about the types of Streams.
We'll cover the following...
Types of Streams
There are two types of Streams that one can be used to carry out the asynchronous operations.
-
Single Subscription
Single subscription streams are meant to deliver events in order. These types of streams are used when the order of events received matters; like reading a file. Such types of Streams can only be listened to once. Attempting to listen to them again will throw an exception.
-
Broadcast (Multiple subscribers)
Broadcast streams are intended to deliver events to their subscribers. Once subscribed, any subscriber can2 start listening to events. A Broadcast stream can be listened to multiple times.
Note: A Single Subscription Stream can be converted into a broadcast Stream by using the ...