0.2.11 • Published 2 years ago

@scalecube/cluster-nodejs v0.2.11

Weekly downloads
149
License
MIT
Repository
-
Last release
2 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

3 years ago

0.2.10

3 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.3-test.0

4 years ago

0.2.2-test.0

4 years ago

0.2.0

4 years ago

0.0.3-next.15

4 years ago

0.0.3-next.14

4 years ago

0.0.3-next.13

4 years ago

0.0.3-next.12

4 years ago

0.0.3-next.11

4 years ago

0.0.3-next.10

4 years ago

0.0.3-next.9

4 years ago

0.0.3-next.8

4 years ago

0.0.3-next.7

4 years ago

0.0.3-next.6

4 years ago

0.0.3-next.5

5 years ago

0.0.3-next.4

5 years ago

0.0.3-next.3

5 years ago

0.0.3-next.2

5 years ago

0.0.3-next.1

5 years ago

0.0.3-next.0

5 years ago

0.0.2-next.0

5 years ago

0.0.2-alpha.5

5 years ago

0.0.2-alpha.4

5 years ago

0.0.2-alpha.3

5 years ago

0.0.2-alpha.2

5 years ago

0.0.2-alpha.1

5 years ago

0.0.2-alpha.0

5 years ago

0.0.1

5 years ago