Skip to content

chthonn/distributed-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributed Reverse Proxy

Built from raw bits: TCP pooling, ICMP health checks, BPF packet sniffing, DNS caching, and custom HTTP parsing. No third-party proxies - pure Go infrastructure.

Core Features

  • Layer 4/7 Load Balancing with Round-Robin algorithm
  • TCP Connection Pooling eliminating 3-way handshake overhead
  • ICMP Active Health Probing for backend failure detection
  • BPF Packet Sniffing for live traffic observability
  • DNS Caching with TTL-based resolution
  • Raw HTTP Parser without standard library dependencies

Quick Start

# Terminal 1 & 2: Start backends
go run cmd/backend/main.go -port=8081 -name=backend1
go run cmd/backend/main.go -port=8082 -name=backend2

# Terminal 3: Start proxy
sudo go run cmd/proxy/main.go -backends=http://localhost:8081,http://localhost:8082

# Terminal 4: Test
curl http://localhost:8080/
./scripts/load-test.sh

About

Reverse proxy & load balancer in Go - TCP pooling, ICMP health checks, BPF sniffing, DNS cache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors