Many times I've asked myself the same question, Is the observer pattern the same
as pub-sub pattern?
Well, It isn’t.
The Observer pattern is a software design pattern in which an object, named the
subject, maintains a list of its dependents, called observers, and notifies them
automatically