Skip to content
All projects

Actix-Web Overlay Network Proxy Orchestrator

A high-performance, asynchronous WebSocket signaling and orchestration API built to securely manage and route distributed proxy nodes across Tor and Lokinet overlay networks.

Performance & metrics

  • Low-latency state resolution achieved by completely bypassing disk I/O, performing all mutating operations directly within mapped memory
  • Actor-based WebSocket routing inherently isolates state context per connection, preventing global thread blocking during heavy concurrent node authentication

Why I built it

Deploying distributed routing infrastructures across privacy-centric overlay networks (Tornet/Lokinet) requires a highly concurrent, secure signaling backbone. I engineered this orchestrator to serve as the centralized discovery and authentication registry. By eliminating heavy RDBMS dependencies in favor of in-memory state tracking, the system is designed for rapid deployment in resource-constrained or ephemeral environments where node churn is extremely high.

Architecture & decisions

Built on the tokio async runtime utilizing the actix-web framework. Full-duplex WebSocket connections are managed concurrently using the Actor model via actix_web_actors. Global state (registered nodes, active proxies, and user credentials) is managed entirely in-memory leveraging Arc<Mutex<HashMap>> for thread-safe interior mutability. Access control is strictly enforced via custom JWT Bearer middleware and Bcrypt cryptographic hashing. Nodes must register using an environment-injected API key before authenticating over WS to announce their routing IP and port metrics.

Key features

  • Full-duplex WebSocket Actor architecture for real-time proxy node telemetry, ping/pong health checks, and lifecycle management
  • Lock-contention mitigated in-memory concurrent state tracking using Arc<Mutex<T>>
  • Strict JWT-based bearer authentication middleware coupled with Bcrypt cryptographic hashing for node and user validation
  • Purpose-built API schema designed to synchronize IP/Port address mappings seamlessly with Tor and Lokinet routing configurations

Networking & Protocols

Private

Major project

Watch Together Server: Cross-Household Synced Playback with Rust, Axum and Steam Lobbies

A Rust server that lets people in different homes watch the same video at the same moment. Inside a home, the TV, the desktop app and the game join the same WebSocket room; homes connect to each other through a Steam lobby, without opening ports. Heavy work such as resolving, subtitles and remuxing happens on the server instead of the TV.

  • Rust
  • Axum
  • Tokio
  • +5

Networking & Protocols

Private

Major project

Cyberia & Wired Protocol

A secure, decentralized operating system and network layer built on Wired — a custom, high-performance communication protocol. Instead of HTTP, it uses a mutually encrypted TCP handshake and AES-encrypted WebSocket payloads for strong data confidentiality.

  • Rust
  • C++
  • Tauri
  • +6

Need something similar?

I can build a system like this for you, too.

Describe your project in a few sentences, and we'll work out the right approach and an estimated scope together.