The Observer pattern causes temporal coupling in systems with synchronous message passing. This can lead to failure in Object-Oriented systems. Asynchronous messaging avoids the pitfalls. Actor-based implementations more accurately realize the original intent of the pattern. The intent of the Observer pattern is to “define a one-to-many dependency between objects so that when one object […]
Archive for May 22nd, 2011
22
May
2011
Actors Make Better Observers
Tags: actor, asynchronous, blocking, distribution, JavaScript, listener, message-passing, observer, patterns, pub-sub, synchronous