Skip to content

feat(server): resolve per-entrypoint cache channels at link time - #15

Merged
airyland merged 3 commits into
vrtfrom
feat/ctx-exports-cache-link
Nov 29, 2026
Merged

airyland merged 3 commits into
vrtfrom
feat/ctx-exports-cache-link

Conversation

@airyland

Copy link
Copy Markdown

Producer/link half of the A3 decorator.

  • worker.rs: parse Worker.entrypointCaches, reject the default/workflow/actor/unknown/duplicate names, remove the all-reject gate.
  • loopback_globals: assign each cache service a subrequest channel right after the loopback entrypoints and set Global.cache; return the designators in config order.
  • config.rs::link_worker: resolve those designators into the same subrequest indices.
  • workerd-api.c++: explicitly refuse the config until the cache-aware loopback client lands — no silent uncached serving. Absent config is unchanged.

Next: the C++ WorkerInterface/OutgoingFactory cache wrapper + wd-test, then remove this refusal and pin.

Parse Worker.entrypointCaches, validate that each name is a stateless
named entrypoint, assign the cache subrequest channels right after the
loopback entrypoints (Global.cache), and resolve the service designators
in link_worker at the same indices. The C++ factory still refuses the
config explicitly until the cache-aware loopback client lands; absent
config is byte-identical.
@airyland
airyland merged commit 63c2311 into vrt Nov 29, 2026
3 checks passed
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