Can someone explain how I could translate the above business logicinto Akka's asynchronous method?Thanks
--You received this message because you are subscribed to the Google Groups "Akka User List" group.To post to this group, send email to akka...@googlegroups.com.To unsubscribe from this group, send email to akka-user+...@googlegroups.com.For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
To unsubscribe from this group, send email to akka-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
Just wanted to offer my two cents.If you're business logic is more than trivial I suggest writing your business objects as you would normally and then put that object in an actor. I find that for handling complex state code there are generally two types of states and transitions -- business and runtime. I think this works perfectly with the actor model. Put your business code in normal scala classes( even better if you use the GOF state pattern and keep those objects immutable ) and then put your runtime logic in the actor that contains the business object. I have used the FSM actor and I still use it for some simple use cases. I ended up doing a big refactor away from the FSM because the code became way too hard to maintain because of the mixing of the two types of state logic in one class.
Roland Kuhn
Typesafe – The software stack for applications that scale.
twitter: @rolandkuhn