01 · Context
The question behind the build.
Infrastructure services fail in specific ways: resolvers time out, backends go unhealthy, certificates expire, and an outbound dial can be turned against the network it runs in.
Objective
Combine DNS monitoring, load balancing, TLS inspection and media delivery on a shared platform of safety primitives, usable together or one component at a time.
Approach
RIFT implements a DNS wire-protocol codec and resolver, L4 TCP/UDP and L7 HTTP load balancing with health checks, and TLS certificate inspection, all built on shared error taxonomy, SSRF guarding, circuit breaking and rate limiting.
02 · Architecture
How it fits together.
- 01Clients and DNS queries
- 02Load balancer / DNS & TLS monitors
- 03Shared platform: guard, breaker, limits
- 04Healthy backends
03 · Decisions
The choices that matter.
- 01
Fail-safe defaults
Secure by default, with permissive modes opt-in. Every outbound dial goes through a guard that resolves once, checks every address against a deny-list and dials only validated literals.
- 02
Bounded operations
Hard limits on buffers and queues, plus circuit breakers with failure and recovery thresholds, keep a struggling dependency from taking everything else down.
- 03
Observable failures
Every error path is instrumented: Prometheus metrics, structured logging and health endpoints.
The hard part
Each component speaks a different protocol, yet all of them need the same answers about timeouts, retries, limits and which addresses are safe to reach.
04 · Implementation
From idea to working code.
The toolkit is organized as modules with a shared internal platform. The documented examples below show the L7 proxy and the circuit breaker APIs; some CLI commands are marked as planned in the README.
breaker := circuit.New(circuit.Config{
FailureThreshold: 5,
SuccessThreshold: 2,
RecoveryCooldown: 30 * time.Second,
}, time.Now)
if !breaker.Allow() {
return errors.New("circuit open")
}05 · Outcome
The result, and the next question.
An open-source infrastructure toolkit that goes below the application layer into protocols, health and network safety.
Summarized from the public README. No benchmark figures or production deployments are claimed here, and features the README marks as planned are not presented as complete. Read the project documentation (opens in a new tab) ↗