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
- Host: GitHub
- URL: https://github.com/almazatun/noderr
- Owner: Almazatun
- Created: 2023-08-07T08:47:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-07T18:15:58.000Z (almost 3 years ago)
- Last Synced: 2025-05-31T10:30:19.860Z (about 1 year ago)
- Topics: docker, docker-compose, nodejs
- Language: TypeScript
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

## 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
