All work

04 · Infrastructure layer · Go networking toolkit

RIFT

The quiet machinery between client and server.

Robust Infrastructure For Traffic management: DNS monitoring, load balancing, TLS inspection and media delivery in one Go toolkit.

Role
Independent systems development
Stack
Go · DNS · L4/L7 load balancing · TLS · Prometheus
Status
Open source
Layer
04 — Infrastructure

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.

  1. 01Clients and DNS queries
  2. 02Load balancer / DNS & TLS monitors
  3. 03Shared platform: guard, breaker, limits
  4. 04Healthy backends
Architecture overview based on the project's documented component diagram.

03 · Decisions

The choices that matter.

  1. 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.

  2. 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.

  3. 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.

Go / Circuit breaker example from the documentation
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) ↗

Next · 05 Storage layerPythia