A simple Java-based UDP health-monitoring system that demonstrates:
- Client sends synthetic health data (heart rate & temperature)
- Load Balancer listens on port 8000 and forwards incoming packets in round-robin to three servers
- Servers listen on different ports (9000, 9001, 9002) and print received data
- Muhammad Hasan
- Ameen Siddiqui
- Ahmed Alsaleh
When using VS Code, make sure you have three Run Configurations (or launch three terminals):
-
Server Instances
- Run
server_part1
with argument9000
- Run
server_part1
with argument9001
- Run
server_part1
with argument9002
- Run
-
Load Balancer
- Run
load_balancer
(no arguments) — listens on port 8000
- Run
-
Client
- Run
client_part1
(no arguments) — sends data to load balancer
- Run
Order:
- Start all three Server configurations (ports 9000, 9001, 9002)
- Start the Load Balancer
- Finally, start the Client