I recently began to learn AKKA, 

I have created a router actor, there are a bunch of database worker actors 
sitting behind the router. I have came with this implementation, each 
worker actor will have one database connection, I enclose database logic 
into each message (by implementing interface SQLExecutable), actor will 
execute each message. If the connection dies, exception will be handled by 
router's supervision strategy.

My question is that I know each message in AKKA should be immutable, here I 
am enclosing the logic inside the message, I am not sure if this will cause 
any unexpected behaviour. My intention just want to decouple business logic 
and database connection. You can follow the link to my question in 
stackoverflow.
http://stackoverflow.com/questions/28461927/enclosing-logic-in-akka-actor-message

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to