napajs icon indicating copy to clipboard operation
napajs copied to clipboard

Remote zone, which hosted on other machine

Open darky opened this issue 6 years ago • 1 comments

Would be cool to scale napajs-based application via adding new machines to network, which can provide workers.

napa.zone.create('zone1', {
  host: "<network host here>" // default localhost
});

darky avatar Mar 09 '18 13:03 darky

It's a cool idea indeed. From the begining, napajs has been focusing on enable multi-threading for javascript. Remote zone must have networking and multi-processing involved, while the concept of napa zone (zone.execute and zone.broadcast) can be applied in a networking & multi-processing environment. Let's think about it. Thanks for the feedback, and welcome more!

helloshuangzi avatar Mar 09 '18 18:03 helloshuangzi