You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
johnmcclean-aol edited this page Feb 16, 2015
·
1 revision
SimpleReact Topics
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.
When to use Topics
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.