An ESP project defines a set of event streams, any other required datasources, and the business logic applied to incoming event data to produce results.
At its most basic level, a project consists of:
- Input streams and windows – where the input data flows into the project. An input stream can receive incoming event data on an event-driven
basis, and can also receive static or semistatic sets of data that are loaded once or periodically refreshed.
- Adapters – connect an input stream or window to a datasource. Sybase Event Stream Processor includes a large set of built-in adapters as well as an SDK that you can use to build custom adapters. Adapters can also connect an output stream or window to a destination.
- Derived streams and windows – take data from one or more streams or windows and apply a continuous query to produce a new stream or window.
Getting Results from an ESP Project
Event Stream Processor has four ways to get output from a running project:
- Applications receive information automatically from internal output adapters attached to a stream when you build the project.
- Applications can subscribe to data streams by means of an external subscriber, which users can create using subscription APIs provided with the product.
- Users can start a new project that binds (connects) to a stream in a running project, without reconfiguring the project.
- Users can run on-demand queries using the esp_query tool to query output windows in a running ESP project. For more information see the Utilities Guide.