Mixing queries with monitors
It is possible to have both monitors and queries in a project.
Events that are to be processed by queries should be sent to the com.apama.queries channel from monitors. Queries may send events to any channel which EPL monitors may be subscribed to.
While queries will automatically scale and share state across a cluster, EPL monitors will not. Thus, be aware that a query may process subsequent events matching a pattern on different nodes. On different nodes, monitors with potentially different state will be executing. Similarly, the state of EPL monitors is not automatically stored in the distributed MemoryStore.
Both EPL monitors and Apama queries can make use of actions defined on events, subject to some limitations on the use of
spawn,
die, and event listeners. See
Restrictions in queries.