Guaranteed Delivery Mechanisms

A description of how to write an adapter that incorporates the Sybase CEP Guaranteed Delivery protocol.

If you are writing an input adapter, you need to implement the following functionality:

For an output adapter, you need to implement this functionality:

Exactly how you accomplish these tasks is specific to the SDK you use, described in Sybase CEPC/C++ SDK, Sybase CEPJava 1.5SDK, and Sybase CEP.NET3 SDK.

Note: You must also save some information in persistent storage so that you can recover it after a failure. Specifically, an input adapter must be able to retrieve or reproduce the session ID, the ID of the last batch published, and the messages contained in that batch. Depending on your data source, you may be able to reproduce the messages after a failure without having to save them to disk yourself. Similarly, an output adapter must be able to retrieve or reproduce the session ID and the ID of the last batch of messages it processed.

In addition to these Sybase CEP Guaranteed Delivery functions, you must include code in your adapter to handle a variety of situations that are not directly related to the Guaranteed Delivery protocol: