It is the most popular design pattern. It comes under the behavioral pattern category.
Publishers + Subscribers = Observer Pattern
- Publisher: Who publishes something.
- Subscriber: Who subscribes to a publisher.
Let us understand by taking a real-life example of YouTube. Today everyone uses YouTube. So, I think it will be the best example to explain.