https://github.com/sidkhaliddv/scale-web-sockets
https://github.com/sidkhaliddv/scale-web-sockets
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sidkhaliddv/scale-web-sockets
- Owner: sidkhaliddv
- Created: 2025-01-22T18:59:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-06T18:00:44.000Z (over 1 year ago)
- Last Synced: 2025-03-24T14:42:57.470Z (about 1 year ago)
- Language: TypeScript
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
The application scales websockets connections
currently there are two servers that are handling the load and are behind haproxy that is running as a load balancer.
To run the application use
```docker-compose up -d --build```
To create connections use localhost:5173/. It will show the connections count and respective server
To view all the connections that are currently open to each server go to localhost:5173/all
Note:
-> Application uses server sent events to update the information at /all
-> Info will be updated at every 3 seconds.