Skip to content

feat(server): add Go streaming adapter with embedded V8 - #63

Merged
Marcisbee merged 3 commits into
masterfrom
kode/82v3TPXz-ship-radi-with-go-and-embedded-v8
Oct 22, 2026
Merged

Marcisbee merged 3 commits into
masterfrom
kode/82v3TPXz-ship-radi-with-go-and-embedded-v8

Conversation

@Marcisbee

@Marcisbee Marcisbee commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Adds a Go HTTP adapter that runs Radi TSX in embedded V8 and resolves asynchronous component data through allowlisted Go operations, including an executable Flop example. Responses stream in order with socket backpressure, bounded admission and data work, cancellation, deadlines, error recovery, and coordinated shutdown. Each request gets fresh JavaScript state; workers reuse compiled source without persisted code caching.

Includes a Go-based TSX bundler, npm radi/go export, pinned dependencies, Linux amd64 build/test workflow, and operating/release instructions. This delivers the Radi adapter; it does not deploy a consumer application.

Includes the latest master documentation site. The public guide now has a Go/V8 walkthrough, TSX bridge API reference and navigation entries. The detailed Go API/configuration guide is published with the Markdown index and linked from the server-rendering guide. The docs browser check verifies Markdown discovery and complete examples; desktop rendering and mobile overflow were checked in the actual site.

Validation: real HTTP early-shell, Unicode/escaping, Flop reads, disconnect, slow-reader write timeout, overload/shutdown, parallel workers, operation failures/panics, request isolation, infinite execution, heap-loop interruption, size limits and recovery. Go race checks pass. Three 60-second runs at 16 clients completed 370,631 verified responses with zero failures. Existing 315 client and 10 server tests pass; npm package builds and exports radi/go.

Limits: trusted application code only. V8 heap limits are best effort and native/large-allocation OOM can terminate the process; use external memory limits and a restart policy. Go operations must cooperate with cancellation; synchronous Flop reads can only check cancellation before/after the read. One worker handles one stream at a time, including I/O waits; configure workers/queue for the application workload. The load results are not a capacity SLA or comparable to the earlier buffered benchmark.

@Marcisbee
Marcisbee marked this pull request as ready for review October 22, 2026 15:02
@Marcisbee
Marcisbee merged commit e61cd47 into master Oct 22, 2026
5 checks passed
@Marcisbee
Marcisbee deleted the kode/82v3TPXz-ship-radi-with-go-and-embedded-v8 branch October 22, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant