https://github.com/rafaelmatsumoto/load_balancing_nginx_example
Example of how to load balance with NGINX.
https://github.com/rafaelmatsumoto/load_balancing_nginx_example
docker docker-compose go golang load-balancer nginx reflex
Last synced: 7 months ago
JSON representation
Example of how to load balance with NGINX.
- Host: GitHub
- URL: https://github.com/rafaelmatsumoto/load_balancing_nginx_example
- Owner: rafaelmatsumoto
- License: mit
- Created: 2022-01-20T17:01:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-24T21:18:08.000Z (over 3 years ago)
- Last Synced: 2025-03-11T11:42:49.470Z (7 months ago)
- Topics: docker, docker-compose, go, golang, load-balancer, nginx, reflex
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Load Balancing with NGINX
This project is an example of how to load balance traffic (layer 7) with NGINX.
## Requirements
- [Docker Compose](https://docs.docker.com/compose/).
## Usage
```bash
docker-compose up
```Then go to: http://localhost, then you should see `APPID = 8000`, if you keep reloading the page this `APPID` will range between 8000, 8001 and 8002
You can check other load balancing implementations by accessing the routes: http://localhost/app1 and http://localhost:app2
## Contributing
Pull requests and suggestions are welcome 😁.## License
[MIT](https://choosealicense.com/licenses/mit/)## Author
- [@rafaelmatsumoto](https://github.com/rafaelmatsumoto)