Skip to content

Decide the origin-transport mechanism (cache written to different lambdas) #24296

Closed

Description

@s1gr1d

Example: the same app on Vercel. The fill runs in lambda 1, the hit is served by lambda 2. The shared cache has the entry, but lambda 2's memory has no record of who filled it (no link). On a single self-hosted server it works.

Solves: whether links exist on the most common deploy target. We should know this before shipping, not after.

Fix idea: compare three options. (a) A per-process in-memory table, which works today but only within one instance. (b) Trace context stored inside the cache entry, which works everywhere but needs a Next.js upstream metadata-slot ask. (c) Both, table now and entry metadata when upstream lands. Deliverable: a decision record with rejected options and an estimate of the same-instance hit rate on serverless.

Activity

  1. added
    javascriptPull requests that update javascript code
    on Sep 10, 2026
  2. linear-code commented on Sep 10, 2026

    @linear-code
  3. changed the title [-]Decide the origin-transport mechanism[/-] [+]Decide the origin-transport mechanism (cache written to different lambdas)[/+] on Oct 7, 2026
  4. self-assigned this
    on Oct 7, 2026
  5. github-actions commented on Oct 23, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #25448, which was included in the 11.9.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

javascriptPull requests that update javascript code

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions