September 2016
Intermediate to advanced
775 pages
18h 22m
English
There are two different ways of notifying the Observer of the changes that happen in the Subject. They can be classified as push or pull models.
In the pull model, Observers play an active role as follows:
Subject broadcasts to all the registered Observers when there is any changeObserver is responsible for getting the changes or pulling data from the subscriber when there is an amendmentSubject notifies the Observer and the second step where the Observer pulls the required data from the SubjectIn the push model, the Subject is the one that plays a dominant role as follows:
Read now
Unlock full access