When not to use an Event Emitter

Consider where you place an Event Emitter in your flow, and what data you choose to be stored in the event. Avoid placing an Event Emitter in the normal execution path of a flow as this could affect performance by causing a large number of events to be generated.

In the following example flow, two event emitter primitives are used in the main path of the flow. The first event emitter will always be executed to notify that a message has been logged. The second event emitter will frequently be executed to notify that the message has been routed to a service in the normal path of the flow. Both event emitters are executed in frequently used normal branch conditions of the flow.


Event emitter in a frequent normal flow execution path

Related concepts
The Common Event Infrastructure and Common Base Events
Best Practice: Choosing properties of an event
Best Practices: When to use an Event Emitter
Related tasks
Generating event definitions
Generating a monitor model
Related reference
Content of the Event Emitter primitive's event
Event Emitter mediation primitive

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.