Event bus implementation providing pub/sub pattern with events queue