https://github.com/killyougutsxxx/load-balancer
Simple Load Balancer using NginX + Node Js & Docker
https://github.com/killyougutsxxx/load-balancer
docker docker-compose javascript load-balancer nginx nginx-proxy nginx-server nodejs shell
Last synced: 2 months ago
JSON representation
Simple Load Balancer using NginX + Node Js & Docker
- Host: GitHub
- URL: https://github.com/killyougutsxxx/load-balancer
- Owner: KILLYOUGUTSXXX
- Created: 2023-05-13T12:16:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-19T01:43:14.000Z (over 2 years ago)
- Last Synced: 2025-02-26T18:53:19.100Z (over 1 year ago)
- Topics: docker, docker-compose, javascript, load-balancer, nginx, nginx-proxy, nginx-server, nodejs, shell
- Language: Dockerfile
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Load Balancing
A simple project to implementing Load Balancing using Nginx + Node JS + Docker.
## Installation
Make sure you already install the docker & docker-compose,
and clone the repository.
```bash
# 1. build the images.
docker-compose build
# 2. create & start the containers, and run it in the backround
docker-compose up -d
# 3. make sure the containers is ready.
docker container ls --filter="name=my-*"
```
## Usage
_Round Robin Load Balancing :
[http://127.0.0.1](http://127.0.0.1)_
_Cache Request :
[http://127.0.0.1/cache](http://127.0.0.1/cache)_
## FYI
The service is running for **6 ports (3300 - 3305)**, which whole of the services is connect to the _proxy_, and the api only can be accessed throught the proxy servers with the specific custom header that already define in the container of _API Service_.
Check the results :
- [http://127.0.0.1:3300](http://127.0.0.1:3300)
- [http://127.0.0.1:3301](http://127.0.0.1:3301)
- [http://127.0.0.1:3302](http://127.0.0.1:3302)
- [http://127.0.0.1:3303](http://127.0.0.1:3303)
- [http://127.0.0.1:3304](http://127.0.0.1:3304)
- [http://127.0.0.1:3305](http://127.0.0.1:3305)
## Authors
- [@KILLYOURGUTS](https://github.com/KILLYOUGUTSXXX)
## Tech Stack
[](https://skillicons.dev)
## License
[MIT](https://choosealicense.com/licenses/mit/)