0.2.11 • Published 3 years ago

@scalecube/cluster-nodejs v0.2.11

Weekly downloads
149
License
MIT
Repository
-
Last release
3 years ago

Join the chat at https://gitter.im/scalecube-js/Lobby

NOTICE versions 0.0.x are experimental without LTS or the API and behavior might change from patch to patch

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);

// calling `getCurrentMembersData()`, will resolve with the distributed environment's latest state.
cluster.getCurrentMembersData().then(console.log); 

// on subscribe to `listen$()`, we will start getting emits of the distributed environment's latest state.
cluster.listen$().subscribe(console.log); 


// on calling `destroy()`, we will remove our metadata from the distributed environment. 
// also, it stops the cluster from sharing/publishing metadata.
cluster.destroy().then(console.log); 
0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.3-test.0

5 years ago

0.2.2-test.0

5 years ago

0.2.0

5 years ago

0.0.3-next.15

5 years ago

0.0.3-next.14

5 years ago

0.0.3-next.13

6 years ago

0.0.3-next.12

6 years ago

0.0.3-next.11

6 years ago

0.0.3-next.10

6 years ago

0.0.3-next.9

6 years ago

0.0.3-next.8

6 years ago

0.0.3-next.7

6 years ago

0.0.3-next.6

6 years ago

0.0.3-next.5

6 years ago

0.0.3-next.4

6 years ago

0.0.3-next.3

6 years ago

0.0.3-next.2

6 years ago

0.0.3-next.1

6 years ago

0.0.3-next.0

6 years ago

0.0.2-next.0

6 years ago

0.0.2-alpha.5

6 years ago

0.0.2-alpha.4

6 years ago

0.0.2-alpha.3

6 years ago

0.0.2-alpha.2

6 years ago

0.0.2-alpha.1

6 years ago

0.0.2-alpha.0

6 years ago

0.0.1

6 years ago