Correct me if i am wrong. Publish/subscribe pattern is the same as the Observer Pattern.
Definition : Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
More information visit : http://www.dofactory.com/Patterns/PatternObserver.aspx