Richard Searle


Some concerns with akka.js

17 Aug 2013

The akka.js  project provides a direct linkage from angular.js to Akka and was referenced by Jonas Boner. However, there are some concerns with architecture and the implementation. The latter would be irrelevant if this project is merely a POC.
  1. The WebSocketClientStore object contains a mutable Map shared between two actors.
  2. ActorRefs are added to the Map, but never removed.
  3. The akka module contains a replyTo  map, to which a promise is added, but never removed.
  4. The actor protocol is defined in terms of JsonObject, which are essentially untyped.
  5. The Akka actors are directly exposed to untrustworthy client code, without an mechanism for authentication, authorization, etc.