benlau / nactor

Node.js actor model framework for game
71 stars 7 forks source link

Multi core support #3

Open RichardWright opened 7 years ago

RichardWright commented 7 years ago

Could the framework be changed to address multiple processes with perhaps an actor per process? Have you tried such a thing? I don't think I would want to change yours, but would love a discussion about it.

Thanks

benlau commented 7 years ago

hmmm... I didn't tried to do that. But in case I need to do so, probably I will just use the "Cluster" module to have multiple instance of node running.

https://nodejs.org/api/cluster.html#cluster_cluster

RichardWright commented 7 years ago

I was thinking of maybe having a processor per actor? Again, this is just a philosophical question.

benlau commented 7 years ago

It really depend on your use-case. Technically it is possible.