Skip to content

Add the Jetty native Stream backend - #352

Closed
moetemp wants to merge 33 commits into
moe/jetty/v2/j1-backend-registryfrom
moe/jetty/v2/j2-native-plugin
Closed

moetemp wants to merge 33 commits into
moe/jetty/v2/j1-backend-registryfrom
moe/jetty/v2/j2-native-plugin

Conversation

@moetemp

@moetemp moetemp commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

This PR adds NativeStreamPlugin over the native Store. Workflow writes use Local Activities. The server closes Streams when their owning Workflow chain ends.

This is a frozen Jetty prototype. See the Brook design and Python implementation for current work.

The November review inspected the source and existing test coverage. It did not rerun the frozen native server stack.

Reviewer's guide

This is a frozen prototype. Review current Streams behavior in the Python implementation.

  1. Start with temporalio/contrib/streams/native.py, then the bridge changes. Each client must use its own connection and runtime.
  2. Check concurrent first calls and writer reuse. Native ownership and server closure require the matching prototype server.

…native-plugin

# Conflicts:
#	temporalio/contrib/streams/_backend.py
…native-plugin

# Conflicts:
#	temporalio/contrib/streams/_backend.py
#	temporalio/contrib/streams/redis.py
…native-plugin

# Conflicts:
#	temporalio/contrib/streams/_backend.py
@moetemp moetemp changed the title [Jetty] Added NativeStreamPlugin, whose Streams the server keeps. [Jetty] Added NativeStreamPlugin over the crate's native Store. Oct 22, 2026
…native-plugin

j1 has Brook p34, where each client gets its own Stream runtime (S123). The native plugin builds its runtime on the client's own connection, so one plugin on two clients calls each on its own (bug 10). It pins crate k2 82ee4992 and Core c9 04312dfd.
…native-plugin

An Activity's close keeps the handle's owner ref, and a handle with only an id names the Activity's own chain, as Brook's close does.
@moetemp moetemp changed the title [Jetty] Added NativeStreamPlugin over the crate's native Store. Add the Jetty native Stream backend Nov 27, 2026
@moetemp moetemp closed this Nov 28, 2026
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