An open API service indexing awesome lists of open source software.

https://github.com/almazatun/noderr

Node.js 🟢 example implementation Cluster with multiple instances and Worker threads to handle processing
https://github.com/almazatun/noderr

docker docker-compose nodejs

Last synced: 2 months ago
JSON representation

Node.js 🟢 example implementation Cluster with multiple instances and Worker threads to handle processing

Awesome Lists containing this project

README

          

# noderr

Noderr represent node.js implementation handle processing using `multiple instances` with `Cluster` (Round robin scheduling) and `worker threads`.

## Cluster mode with `Round robin scheduling`
```mermaid
flowchart LR
A[Client] -->|request| B{Master Round robin scheduling}
B --> C[Service instance]
B --> D[Service instance]
B --> E[Service instance]
B --> F[Service instance]
```

### Cluster benchmark
![cluster_benchmark](/assets/cluster_benchmark.png)

## Worker threads
```mermaid
flowchart LR
A[Client] -->|request| B{Master process}
B --> C[Worker]
B --> D[Worker]
B --> E[Worker]
B --> F[Worker]
```

### Workers benchmark
![cluster_benchmark](/assets/workers_benchmark.png)