
This is part of scalecube-js project, see more at https://github.com/scalecube/scalecube-js
Full documentation
Cluster-nodejs
This package provides a default cluster implementation for node-js.
it uses SWIM protocol for discovering members in distributed environment.
Basic Usage
import { joinCluster } from '@scalecube/cluster-nodejs';
const clusterOptions = {
seedAddress,
address,
itemsToPublish: [],
};
const cluster = joinCluster(clusterOptions);
cluster.getCurrentMembersData().then(console.log);
cluster.listen$().subscribe(console.log);
cluster.destroy().then(console.log);