0
Today I was evaluating a article (English) concerning the differences between the Observer and Publisher-Subscriber standards, I had until then the view that both were the same thing! Even quoting from itself Wikipedia:
The Observer standard is also called Publisher-Subscriber, Event Generator and Dependents.
In the article the author mentions that this was an interview question, and that he replied that both were equal. The interviewer’s response was that they were NOT equal, according to the article’s definition:
Observer: where there is a change in an object, the "observers" are notified
Publisher-Subscriber: when there is an event, a channel (topic) is notified, and all subscribers of the topic receive the notification. The notifier DOES NOT know his notifiers.
It is confusing because in some places mention that the two patterns are equal and the answer can be considered correct, on the other hand, the difference in implementation shows that they are quite different.
Still, from a conceptual point of view it is correct to say that Publisher-Subscriber is a "derivation" of the Observer pattern and that they are NOT the same thing, or that they are the same thing?
This? https://answall.com/q/36655/101 and this? https://answall.com/q/29046/101
– Maniero
@Maniero, I complemented the question better, these two links mention the Observer, but the question would be on how to conceptually consider two patterns, or just the Observer.
– nullptr