I have a project that is using Akka Actors in scala, and I'm running into 
some issues regarding the actors that do processing and send the results 
back to the sender.

To better explain, here is the workflow of my project:

   - Commander send msg to Poller
      - Poller sends SuccessMessage(self, List[String]) to Commander
   - Commander sends List[String] to Processor
      - Processor sends SuccessMessage(self, File) to Commander
   - Commander sends File to Uploader
      - Uploader sends SuccessMessage(self, Boolean) to Commander
   - and so on.

Essentially, I have two questions:

Right now, I wrap everything that is returned from an actor back to the 
Commander (supervisor) in a SuccessMessage. Is this the best way of doing 
it, or is there another way to handle many different types of return?

The SuccessMessage will also have a "payload". I am debating between using 
generics for the payload type, or just making it an Option[Any] and then 
doing a lot of casting on the commander side, before sending it to any 
actor (poller, processor, etc.). I know that in Java akka actors just cast 
Object; would I have to do the same?


Thanks for your help!! Just wondering if there's a cooler way of doing 
things...

-- 
>>>>>>>>>>      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