Repository navigation
doc: decision record for Cloudflare Workers rendezvous/relay component (#5794) - #6260
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 6 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 384a6562e8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - **Workers as an iroh/DERP relay or QUIC peer.** Impossible on the | ||
| platform (no UDP), not merely hard. Rejected by physics, recorded so | ||
| it is not re-proposed. |
There was a problem hiding this comment.
Distinguish an iroh relay from a QUIC endpoint
For the UDP-denied case this component targets, missing UDP sockets does not rule out an iroh-compatible relay: iroh's protocol description explains that endpoints connect over HTTPS, upgrade to WebSockets, and exchange encrypted datagrams through a forwarder that does not terminate QUIC. This rejection conflates running a QUIC endpoint with forwarding its encapsulated packets, excluding a potentially compatible alternative on an incorrect platform premise. Evaluate relay-protocol compatibility separately; lack of UDP alone is not sufficient grounds to require a self-hosted relay.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 76a8923. Agreed — the record conflated endpoint-hood with relay forwarding. It now distinguishes the two explicitly: a Worker cannot be a QUIC/iroh endpoint (no UDP), but iroh relay forwarding is HTTPS/WebSocket-shaped and is not ruled out by the platform wall; wire-compatibility of the pairing with the iroh relay protocol is recorded as a required implementation-time evaluation, open in both directions, and the self-hosted-required section was narrowed accordingly.
| - **WebSocket message size in Durable Objects: 1 MiB** (Workers limits | ||
| doc, Durable Objects table) **[verified 2026-11-05]**. Consequence: | ||
| frames above 1 MiB must be chunked by the *endpoints'* framing layer; | ||
| the relay forwards frames, it does not reassemble streams. |
There was a problem hiding this comment.
Correct the platform limit before requiring 1 MiB chunking
For future implementations handling messages larger than 1 MiB, this incorrectly makes endpoint-level chunking a platform requirement. Cloudflare's Durable Objects limits list a received WebSocket message limit of 32 MiB for both storage backends, not 1 MiB. Correct the verified limit and its framing consequence, or explicitly identify 1 MiB as a deliberate application cap rather than a Cloudflare restriction; otherwise the record imposes unnecessary framing work and uses an understated limit to justify its throughput constraints.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 76a8923. Verified against the Durable Objects limits doc (linked in the record header): received WebSocket message limit is 32 MiB for both storage backends. The record now states 32 MiB as the platform limit, and presents a smaller frame cap (1 MiB suggested) explicitly as a deliberate application-level judgment (per-message CPU/memory/head-of-line bounds), not a Cloudflare restriction.
…, DO ws limit 32 MiB
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 76a892361b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| a worse product and a more expensive one; WebSocket upgrade is plain | ||
| HTTPS and passes the same egress. Rejected except as a possible |
There was a problem hiding this comment.
Distinguish HTTPS reachability from WebSocket availability
For restricted networks whose proxy permits HTTPS requests but blocks WebSocket upgrades, this relay remains unreachable even though HTTP polling could work. WebSocket traffic does not necessarily pass the same egress: Microsoft's transport documentation explicitly describes falling back to long polling when a proxy blocks WebSockets. This distinction matters for the component's UDP-denied-network use case and invalidates the reachability premise used here to reject polling. Explicitly require WebSocket-capable egress in the supported-environment criteria and acknowledge the HTTPS-only coverage gap, rather than treating ordinary HTTPS access as sufficient.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in the new commit. Agreed — HTTPS reachability and WebSocket availability are distinct egress capabilities. The record now (1) adds WebSocket-capable egress as an explicit supported-environment criterion for the relay role, naming the HTTPS-only/WebSocket-blocked case as a real coverage gap that falls to #5671's other tiers; (2) corrects the polling alternative: it is rejected as this component's primary shape on latency/metering grounds only, and stays a live candidate for a parent-level last-ditch tier covering that gap; (3) notes the rendezvous role is plain HTTPS and unaffected.
…rement from HTTPS
Decision record for #5794 (queue task 10586, follow-up from triage task 10197).
Adds
doc/2026-11-05T15-10-00Z_design_cloudflare_workers_rendezvous_relay.md:idbroker required for sovereignty, UDP semantics, bulk, and inbound-TCP cases; both shapes share the same signed records and id: design: ID transport fallback for UDP-denied networks v1 #5671 broker contract (parity contract).connect()restrictions), each tied to its design consequence; facts marked verified vs judgment.connect()-TCP relay, HTTP polling relay, folding into P7.2, no Workers component), abuse/auth/metadata invariants written as future acceptance tests, explicit distinction from P7.2 pkarr lookup, and a parent boundary section: no change to id: design: ID transport fallback for UDP-denied networks v1 #5671.Decision-record-only: no source code or deployment changes, per task 10586 scope. No code tests apply; verification is citation + parent-consistency, stated in the record's oracle section.
Closes #5794.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.