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

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.

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