Scala – Using Akka Actors with Spring Beans

actor-modelakkascalaspring

Do you think that using akka actors in front of transactional service beans, is a good idea ?

Actors are waked up by a facade used by a client application, and actor use a message to handle right service call.

Is it a good practice ?

This article (http://honeysoft.wordpress.com/2012/08/05/akka-actor-dependency-injection-using-spring/) is talking about using spring beans with akka actors.
But I could not see the gain to use actors in front of (singleton) spring beans.

Best Answer

Since the Akka docs state that Actors should not block (on IO, sockets, ...) unless it's is really unavoidable, it sounds like there might be little value in having actors wrap transactional services, of which I'm assuming the majority will be backed by transactional databases.

There might be other reasons to using Actors of course (the remoting, durable inboxes, clustering, ...)

Related Topic