Event publish & subscribition system for engine