We began the chapter by understanding the behavioral design patterns. We understood the basis of the Observer pattern and how it is effectively used in software architecture. We looked at how Observer design patterns are used to notify the Observer
of the changes happening in the Subject
. They manage the interaction between objects and manage one-to-many dependencies on the objects.
You also learned the pattern with a UML diagram and sample code implementation in Python v3.5.
Observer patterns are implemented in two different ways: push and pull models. You learned about each of these and discussed their implementation and performance impact.
We understood the principle of loose coupling in software design and how the Observer pattern leverages this principle in application development.
We also covered a section on FAQs that would help you get more ideas about the pattern and its possible advantages/disadvantages.
At the end of this chapter, we're now geared up to learn more Behavioral...