Asynchronous Event Notification

From InterBase
Jump to: navigation, search

Go Up to Understanding the Event Mechanism


When an application needs to react to possible database events, but also needs
to continue processing whether or not those events occur, it should set up an asynchronous trap (AST) function, and use asynchronous event notification to register interest in events while continuing its own processing. For example, a stock brokering application requires constant access to a database of stocks to allow a broker to buy and sell stock, but, at the same time, may want to use events to alert the broker to particularly significant or volatile stock price changes.

The isc_que_events() function and the AST function provide asynchronous event handling for an application. For more information about asynchronous event handling, see Continuous Processing with isc_que_events().