~/runtimelab $ cat ./tcpproxy-go/README
TCP Reverse Proxy (Go)
A layer-4 reverse proxy, built on the ring buffer you wrote. Forwarding both directions of a stream, buffers borrowed from a pool rather than allocated per connection, TCP health probes and round-robin over what answers, a per-IP token bucket, a drain with a deadline, an upstream connection pool, and a final stage that attacks the whole thing under latency while the allocation count stays at zero.
what you end up with
A pooled, rate-limited TCP reverse proxy
- stages
- 8
- estimated
- 8–12 h
- level
- Advanced
- track
- Backend Engineering
- language
- Go
- forwarding both directions, and the half-close
- a sync.Pool of fixed buffers instead of make per connection
- TCP health probes and round-robin over what answers
- a per-IP token bucket, and the ceiling on it
- draining on SIGTERM with a deadline
- zero allocations on the per-connection path
- upstream connection reuse, and framing as its precondition
- teardown that is symmetric and bounded
The stage list opens once you sign in — it is the challenge, not the pitch. Signing in is free, and the first stages of every challenge are too.