DEV Community

loading...

Discussion on: Simple pub/sub pattern (OOP) using pure Ruby

Collapse
pashagray profile image
Pavel Tkachenko Author • Edited

Yes! You may need to introduce Event Bus. It's like a huge highway, where publishers post events. Subscribers listen to that Event Bus, rather than Publishers.

EventBus