Summary
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access