It is possible to have both monitors and queries in a project.
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 cache.
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.