Glossary

Observer Pattern

Observer is a pattern where a subject object maintains a list of dependent observer objects and automatically notifies them when its state changes. It is the foundation of event systems.

Participants

Where it appears

Observer vs Pub/Sub

In Observer, the subject knows its observers directly. In Pub/Sub there is a broker between them: publisher and subscriber are unaware of each other.