-
Notifications
You must be signed in to change notification settings - Fork 135
Topics Explained
SimpleReact Topics allow Streams to connect to a Topic and receive every message added to the Topic. This is in contrast to SimpleReact Queue's which operate on a first come served basis. If two Streams are connected to a Queue, each message added to the Queue will be read by only one of the connected Streams. In a Topic, by contrast, each message added will be read by every connected Stream.
Topics are good choice when the same data needs to be processed in different ways. For example, if your application process streaming log data from another application, you may want to convert the streaming text into a common object format before distributing the Objects to different processing Streams. I.e. your application would handle the I/O work in one Stream before distributing the same data to multiple Streams that would operate on some subsection of the data in different ways.
oops - my bad