Skip to content

mesh: REST API demo across two processes #88

Done

Description

@chrnx-dev

Beta needs proof that mesh works end to end: a small REST API split across two processes.

Scope (owner, 2026-11-19: minimal viable mesh + a small REST API demo):

  • A teapot that owns a domain (e.g. billing): exports a @Step and a few REST routes.
  • A teacup that serves its own routes, @needs the teapot's step, and proxies the teapot's routes.
  • Scenarios shown and tested: normal request across the hop; teapot down after connect → 503 + retry-after; teapot back → reconnect and serve again.
  • Runnable with one command, covered by a test so it cannot rot; a section in the docs mesh guide (green-tea-docs) linking to it.

Depends on the mesh security fixes, step isolation (fix: one remote step call runs only that step) and the ws:// policy.

Activity

  1. added this to the Mesh beta milestone on Nov 20, 2026
  2. added
    documentation
    area: mesh
    on Nov 20, 2026
  3. chrnx-dev commented on Nov 24, 2026

    @chrnx-dev
    ContributorAuthor

    Shipped in 26.11.0-rc.2.

    • cee0d1f docs(example): mesh REST demo across two processes (PR chore(release): 26.11.0-rc.2 #93): example/mesh/ (billing teapot + shop teacup) and test/examples/mesh.test.ts, which runs billing as a real child process and covers requests across the hop, 503 + retry-after when billing is killed, and recovery.
    • The docs guide links to it: green-tea-docs guides/mesh.md ("The core repository has a runnable version of all of this in example/mesh/").
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: meshdocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions