3 ms·
Implementing Actors, and by extension the Observer pattern, is just so ridiculously easy in Scala. observers.foreach(o => o ! myEvent) ...and you're sending a
by mark242 15y ago
Implementing Actors, and by extension the Observer pattern, is just so ridiculously easy in Scala.
observers.foreach(o => o ! myEvent)
...and you're sending asynchronous events to each of the observers. With Akka, you can have those actors running basically anywhere and have the messages automatically routed to them. The obvious question is-- can this Reactor trait be applied via Akka to external machines?