Streamweld

Durable LLM streaming proxy

A network drop or deployment can interrupt a long model response. Streamweld lets clients reconnect to an OpenAI-compatible stream and pick up at the last event they received, even through a different proxy replica.

Streamweld social card showing a disconnected reader resuming from the last event

Measured results

  • 79.9 ms

    median resume latency

    Measured from the resume request to the next content during local CPU inference.

  • 96.9%

    fewer backend generation calls

    Compared with requests without idempotency keys in local retry-burst benchmarks.

What I built

I built the Go proxy around a Redis event journal and server-sent event cursors. An atomic idempotency check makes concurrent retries share one generation, saving inference work when requests arrive together.

I packaged the proxy for Docker and Kubernetes with Helm, published a TypeScript client, and built a React project site with keyboard navigation and focus management.

Stack

  • Go
  • TypeScript
  • Redis
  • Docker
  • Kubernetes
  • Helm
  • React
  • Terraform