untu / comedy

Node.js actor framework.
Eclipse Public License 1.0
650 stars 36 forks source link

Possibility of scaling to other machines rather than just processes #7

Closed thalesmello closed 7 years ago

thalesmello commented 7 years ago

I just found out about this project, and I find the scaling capabilities particularly interesting.

Just out of curiosity, have you considered the possibility of scaling out to other machines rather than just other processes?

It would be really interesting it we were able to configure an entire cluster, allocating actors to different machines, but using the same interface to communicate between them.

What would be the challenges in making something like this happen?

weekens commented 7 years ago

Hi! This is exactly what I'm working on right now in remote-actors branch. I plan to finish the initial version within nearest month.

The very basic things seem to be working (you can check the tests: test-remote-actor.js).

Still to be done:

Things to do after initial version is released:

The most challenging part is clustering, I guess. But this stuff is already done at least in Akka, and there are standard protocols for that (Gossip). So nothing impossible. And in the first version we can get away with just manual cluster configuration.

Great to see you interested! Hopefully, Comedy will fit your needs!

thalesmello commented 7 years ago

@weekens It's really great to see your vision for this library. =)

I was researching different async patterns in JavaScript, particularly Actor pattern, and came across this one. By far, this was the better well-thought (and up-to-date) library I've come across. ;)

weekens commented 7 years ago

The initial version is ready and merged to master. Going to release in nearest days.