https://github.com/cemutku/application-load-balancing-example
.NET load balancing with NGINX, Docker, and HTTPS.
https://github.com/cemutku/application-load-balancing-example
circuit-breaker docker docker-compose dotnet https load-balancer nginx reverse-proxy tls
Last synced: 16 days ago
JSON representation
.NET load balancing with NGINX, Docker, and HTTPS.
- Host: GitHub
- URL: https://github.com/cemutku/application-load-balancing-example
- Owner: cemutku
- Created: 2025-05-10T22:19:25.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-20T19:38:17.000Z (about 1 year ago)
- Last Synced: 2025-05-20T21:16:30.658Z (about 1 year ago)
- Topics: circuit-breaker, docker, docker-compose, dotnet, https, load-balancer, nginx, reverse-proxy, tls
- Language: C#
- Homepage:
- Size: 108 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🧭 Application Load Balancing with .NET, NGINX, Docker Compose
This project demonstrates a secure, production-style application load balancing setup using:
- 🔹 .NET Web APIs (Service A and B)
- 🔹 NGINX as a reverse proxy and HTTPS terminator
- 🔹 Docker Compose for orchestration
- 🔹 HTTPS via self-signed TLS certificates
- 🔹 Health checks and logging
- 🔹 Circuit breaker and retry
---
## 🛠️ Getting Started
### 1. 🔐 Generate TLS Certificates
Choose one of the provided scripts:
#### PowerShell (Windows)
```powershell
.\generate-certs.ps1
```
#### Bash (macOS/Linux)
```bash
chmod +x generate-certs.sh
./generate-certs.sh
```
### 2. 🚀 Run All Services
```bash
docker-compose up --build
```
### 3. 🌐 Access the Services
| URL | Description |
| ------------------------------------------------------ | ------------------- |
| [http://localhost:8080/a/](http://localhost:8080/a/) | HTTP (301 redirect) |
| [https://localhost:8443/a/](https://localhost:8443/a/) | Service A |
| [https://localhost:8443/b/](https://localhost:8443/b/) | Service B |