Distributed Systems Project

Mini Load Balancer

An AWS-deployable traffic router that demonstrates reliability engineering: strategy-based routing, active health probes, and automatic failover.

Live Cluster View How It Works

Why This Project Signals Engineering Depth

Traffic Routing

Implements round robin, least connections, weighted routing, and consistent hashing with runtime strategy switching.

Reliability

Active health checks remove failing nodes from rotation and restore them after recovery.

Operational Clarity

Admin APIs expose backend health and connection load for observability and decision-making.

Production Controls

Supports JWT/Cognito auth, rate limiting, retries/backoff, trace IDs, panic recovery, and cost awareness.

Live Control Plane

Reads from /admin/backends and /admin/strategy.

Current Strategy: Loading...
Proxy Endpoint: /proxy/
Estimated Cost: loading...

How Request Routing Works

  1. Client request reaches /proxy/*.
  2. Balancer chooses backend using active strategy.
  3. Health checks keep unhealthy backends out of rotation.
  4. Proxy forwards request and updates connection counters.
  5. Failures trigger automatic rerouting to healthy nodes.

Routing Trade-offs

Round Robin

Simple and fair when all nodes are similar in capacity and latency profile.

Least Connections

Adapts to uneven request duration by sending new traffic to less-busy nodes.

Weighted Routing

Distributes traffic by node capacity so stronger backends handle a larger share.

Consistent Hashing

Best for affinity and cache locality because key-to-node mapping stays stable.

Health checks and failover apply across all strategies to keep unhealthy nodes out of rotation.

AI Copilot

Ask architecture, reliability, or optimization questions based on live cluster state.

AI Provider: loading...
AI response will appear here.