Apama 10.7.2 | Developing Apama Applications | Developing Apama Applications in EPL | Common EPL Patterns in Monitors | Contrasting using a dictionary with spawning
 
Contrasting using a dictionary with spawning
 
Translation using a dictionary
Translation using spawning
The sample code in this topic contrasts the use of a dictionary with spawning. Usually, the dictionary approach is preferred. This is because the spawning approach uses an unmatched event expression, which is vulnerable to maintenance issues if someone else loads an event listener for a pattern that you expect to have no other matches.