Package topic

Topic based Publish-Subscribe sample Java applications.

See: Description

  • Class Summary 
    Class Description
    PublishBeacon
    Publishes a beacon stream on a topic.
    SubscribeBeacon
    Application which subscribes to a topic.

Package topic Description

Topic based Publish-Subscribe sample Java applications. Publish-Subscribe allows applications to subscribe to published streams from other applications, allowing data exchange between applications.
Streams may be exchanged between applications implemented in different languages.

To demo these applications execute the PublishBeacon application one or more times and then the SubscribeBeacon one or more times. Then view the Streams console or Streams Studio live instance graph to see that the applications connected.
To see the dynamic nature you can run: publish, subscribe, subscribe, publish,subscribe and then see the first two subscribe applications did connect up with the publish application that was submitted after them. For example, the output in Streams Studio instance graph would look something like this, where you can see five running jobs, two publishers (jobs ids 42, 45) and three subscribers (jobs 43,44, 46):

See Also:
Integration with SPL applications
streamsx.topology @ IBMStreams GitHub