Ummm... regarding:

"when the actor finished their job it calls the method (in node will be a
callback) "next", where it pass a message"

AFAIK, the actor don't call a method like "next". The actor:

- receives messages
- in the process of each message *can* emit other messages to other actors

and voila!

Sometimes, the message to be processed could have the name/address of an
actor, to reply-to, but it depends on what are you programming. Just reading
http://en.wikipedia.org/wiki/Actor_model
...Thus an actor can only communicate with actors whose addresses it has.
It can obtain those from a message it receives, or if the address is for an
actor it has itself created....

Angel "Java" Lopez
@ajlopez



On Fri, Sep 27, 2013 at 7:38 PM, Norman Paniagua
<[email protected]>wrote:

>  Then, if understand well, Actors are like cell, in other words when the
> system starts all the Actors must be instantiated and will be persistent.
> Acts like a web, some actors just pass messages to others (proxy).
>
> The part I don't understand well its, when the actor finished their job it
> calls the method (in node will be a callback) "next", where it pass a
> message, here I'm conceptually lost, isn't like an express app (i.e) where
> you just res.send(message), or maybe its so but how I build a "response"
> system.
>
> Another recommendation about the fork, spawn or just require method, which
> you consider the best? Lets say the pros of fork / spawn will be if they do
> hard computation it doesn't freeze the main process, but in node it will be
> using a lot of ram (20mb per fork).
>
> I'm coming from the web world so distributed computation is another world
> to me, so how do you structure the actors? How the system will know which
> actor is supervisor of which actor / groups, the only reference I see was
> akka and it does in the configuration.
>
> Well maybe I need to test / read more and keep experimenting.
>
> Regards
>
> --
> Norman Paniagua
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to