Skip to main content

Future Architecture Roadmap

This document outlines the planned evolution of edgeProxy towards a fully distributed, self-healing edge computing platform.

Current Version: 0.3.0

edgeProxy now includes TLS termination, Auto-Discovery API, Internal DNS, and built-in replication (SWIM gossip + QUIC transport). See Configuration for details.

Design Principles

edgeProxy follows proven patterns from production edge platforms:

  • WireGuard as Foundation: All internal communication flows over WireGuard mesh. It provides the backhaul between POPs - the internal network that carries traffic between datacenters. When a user connects to the nearest edge server but their backend runs in a different region, the proxy transparently routes through low-latency WireGuard tunnels instead of going back through the public internet.

WireGuard Backhaul

  • Rust + Tokio for Performance: Critical path components built in Rust using Tokio async runtime for predictable latency without GC pauses.
  • 6PN (IPv6 Private Network): Internal connectivity uses IPv6 private addressing, enabling unlimited address space for backends and services.
  • Anycast Global Network: Single IP address announced from multiple locations, with BGP handling optimal routing.

Architecture Comparison

Current vs Target Architecture

Future Architecture

Componentv1 (Current)v2 (Target)
Traffic RoutingGeoDNSAnycast BGP
Edge ProxyedgeProxy (Rust)edgeProxy (Rust)
Control Planerouting.db (local)Built-in replication (replicated)
Private NetworkWireGuard IPv4WireGuard IPv6 (6PN)
Service DiscoveryStatic (manual)Dynamic (auto-register)
Internal DNSNone.internal domains
Health ChecksPassiveActive + Passive

Completed Features (v0.2.0)

The following features have been implemented and are documented in Configuration:

FeatureDescriptionDocumentation
TLS TerminationHTTPS support with auto-generated or custom certificatesEnvironment Variables
Internal DNSGeo-aware .internal domain resolutionDNS Server
Auto-Discovery APIDynamic backend registration/deregistrationAuto-Discovery API
Built-in ReplicationDistributed SQLite replication across POPs (SWIM + QUIC)Built-in Replication
490 Unit TestsComprehensive test coverageTesting

Implementation Phases

PhaseDescriptionStatus
Phase 1: IPv6 (6PN)IPv6 private networkPlanned
Phase 2: Anycast BGPBGP-based traffic routingPlanned
Phase 3: Health ChecksActive health monitoringPlanned