https://github.com/sagarmaheshwary/websockets-nodejs-nginx-load-balancing
Basic load balancing nodejs websocket servers with nginx round robin reverse proxy.
https://github.com/sagarmaheshwary/websockets-nodejs-nginx-load-balancing
docker docker-compose load-balancing nginx nodejs typescript
Last synced: 3 months ago
JSON representation
Basic load balancing nodejs websocket servers with nginx round robin reverse proxy.
- Host: GitHub
- URL: https://github.com/sagarmaheshwary/websockets-nodejs-nginx-load-balancing
- Owner: SagarMaheshwary
- License: mit
- Created: 2023-09-04T16:53:59.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-04T17:08:30.000Z (almost 3 years ago)
- Last Synced: 2025-10-19T18:45:08.441Z (9 months ago)
- Topics: docker, docker-compose, load-balancing, nginx, nodejs, typescript
- Language: TypeScript
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Websocket Nginx Load Balancing
This is an example project that demonstrates basic round robin load balancing of websocket servers using nginx reverse. We are using redis pub/sub as a medium to push messages to all the servers.
After cloning the project, build the docker image for our nodejs server:
```bash
docker build -t ws-server .
```
Now we are ready to start the containers:
```bash
docker compose up
```