New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More β†’

nats-hemera

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nats-hemera - npm Package Compare versions

Comparing version

to
0.1.27

{
"name": "nats-hemera",
"version": "0.1.26",
"version": "0.1.27",
"main": "index.js",

@@ -5,0 +5,0 @@ "repository": {

@@ -6,3 +6,3 @@ # Hemera

[![Build Status](https://travis-ci.org/StarpTech/hemera.svg?branch=master)](https://travis-ci.org/StarpTech/hemera)
[![NPM Downloads](https://img.shields.io/npm/dt/nats-hemera.svg?style=flat)](https://www.npmjs.com/package/@starptech/hemera)
[![NPM Downloads](https://img.shields.io/npm/dt/nats-hemera.svg?style=flat)](https://www.npmjs.com/package/nats-hemera)
[![Coverage Status](https://coveralls.io/repos/github/StarpTech/hemera/badge.svg?branch=master)](https://coveralls.io/github/StarpTech/hemera?branch=master)

@@ -23,16 +23,16 @@

### Service Discovery
- Missing services are spawned by the control service.
- Any subscription is managed by NATS. You don't need any service discovery. Totally location transparency.
### Scalability
- Filtering on the subject name enables services to divide work (perhaps with locality) e.g `topic:auth:germany`
- Queue group name allow load balancing of services.
- Filtering enables limiting the impact of a request based on a subject name.
### Fault tolerance
- Auto-heals when new services are added
- Cluster mode
- Auto-heals when new services are added.
- Configure cluster mode to be more reliable.
### Load Balancing
- Queue groups
- HTTP/REST endpoints use a redirector or scaling strategy
- Queue groups are used by default in Hemera.
\+ **Hemera** = _Pattern-driven micro services._

@@ -318,10 +318,15 @@

#### Create another instance of it.
#### Create multiple instances of your service.
Now your service is scaled.
```js
node service.js
node service.js
```
#### Create another NATS Server and create a cluster.
Now your service is fault-tolerant.
```
```js
var servers = ['nats://nats.io:4222', 'nats://nats.io:5222', 'nats://nats.io:6222'];

@@ -351,3 +356,3 @@ var nc = nats.connect({'servers': servers});

Set the path to the `gnatsd` before start testing.
```

@@ -354,0 +359,0 @@ npm run test