Publishing and Subscribing to Streams

Data streams and CCL queries work together to move and manipulate the data within Sybase CEP Engine.

When a query takes data from a data stream, the query is said to subscribe to that data stream. When a query places data into a stream, it is said to publish data to that stream.

The following figure shows the flow of data from one stream to another through a query:



Every Sybase CEP data stream must be defined before it can be used by a query. A query that refers to data streams that have not been defined will not execute. A stream definition typically consists of a stream name and a schema definition for the stream.

Note:

If you are using Sybase CEP Studio to build applications, refer to the Sybase CEP Studio Guide for instructions on how to create data streams in Sybase CEP Studio.


Created March 8, 2010. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com