Vithurshan Sivanathan
vithurshan/sys
Projects/projects/vsi-http-engine
L7 / CSYS-01·Sep 2026 – Present

VSI — Custom HTTP/1.x Engine & Proxy Server

VCloud Software Infrastructure (Core Edge Engine)

Modular Layer-7 HTTP/1.x engine, forward proxy, and multi-port reverse proxy built from scratch in C with decoupled L4 transport, streaming request-body framing, and a multi-service fork supervisor.

// Architecture Pipeline Flow

Client TCP
L4 Transport
HTTP/1.x Codec
Reverse / Forward Proxy
Fork Supervisor + /metrics

01 // Problem Statement

Standard application runtimes hide socket lifecycles, header framing, and backpressure mechanics. VSI explores building an armored ingress edge engine from raw POSIX sockets.

02 // Architecture Overview

A supervisor process forks isolated service workers driven by a JSON configuration engine, cleanly separating L4 TCP transport, HTTP/1.x codec parsing, and proxy routing.

03 // Key Engineering Decisions

  • >Decoupled transport vs. protocol codec to allow independent evolution of HTTP/1.x framing and proxy handlers.
  • >Added streaming body reads for Content-Length and chunked payloads to handle arbitrary request sizes without unbounded buffers.
  • >Exposed a lock-free shared memory /metrics endpoint for zero-contention telemetry across proxy workers.

04 // Implementation Highlights

  • >Decoupled L4 transport from HTTP/1.x codec and service routing modules.
  • >Implemented streaming request-body framing supporting both Content-Length and chunked transfer encoding.
  • >Built multi-port reverse proxy with in-place request rewriting, JSON config engine, and lock-free shared /metrics endpoint.
NEXT_UP: Deep-dive benchmarks, packet lifecycle traces, and TLS termination notes to be added in the next update.