Card 22 / 72: In the Publish-Subscribe messaging model, the subscribers register themselves in a topic and are notified when new messages arrive to the topic. Which pattern does most describe this model?
A)
Adapter
B)
Notifier
C)
Observer
D)
State
Answer:
C) Observer
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
This definition is perfectly describe Publish-Subscribe model, actually the Observer pattern is also known as Publish-Subscribe.
|