Skip to content

NexusSerializationContext for data/failure converters - #1828

Open
JoshuaFrenchwood wants to merge 3 commits into
mainfrom
adding-nexus-serialization-context
Open

NexusSerializationContext for data/failure converters#1828
JoshuaFrenchwood wants to merge 3 commits into
mainfrom
adding-nexus-serialization-context

Conversation

@JoshuaFrenchwood

Copy link
Copy Markdown
Contributor

What was changed

Added NexusSerializationContext for nexus callers and sync handlers. This allows data and failure converters to use nexus endpoint, service and operation to be used for encoding and decoding.

Why?

This enables codecs to select serialization behavior or encryption keys by Nexus endpoint, service, or operation.

For example, workflows calling two Nexus endpoints can encrypt each endpoint’s payloads with a different key while ensuring that inputs, results, and failures are decoded with the converter selected for the corresponding operation.

Checklist

  1. Closes

  2. How was this tested:

Added unit/functional tests to verify that NexusSerializationContext works as expected.

  1. Any docs updates needed?

@JoshuaFrenchwood
JoshuaFrenchwood force-pushed the adding-nexus-serialization-context branch from f36df7a to 0774bf3 Compare September 9, 2026 20:09
@JoshuaFrenchwood
JoshuaFrenchwood marked this pull request as ready for review September 9, 2026 20:09
@JoshuaFrenchwood
JoshuaFrenchwood requested a review from a team as a code owner September 9, 2026 20:09
@JoshuaFrenchwood
JoshuaFrenchwood force-pushed the adding-nexus-serialization-context branch from 0774bf3 to 21ee938 Compare September 9, 2026 20:16
Comment thread temporalio/worker/_workflow_instance.py Outdated
Comment thread temporalio/worker/_workflow_instance.py
Comment thread temporalio/worker/_nexus.py Outdated
Comment thread temporalio/client/_interceptor.py Outdated
Comment thread temporalio/client/_impl.py
@JoshuaFrenchwood
JoshuaFrenchwood force-pushed the adding-nexus-serialization-context branch from 070740b to c91cfa3 Compare September 10, 2026 21:55
@JoshuaFrenchwood
JoshuaFrenchwood force-pushed the adding-nexus-serialization-context branch 2 times, most recently from c91cfa3 to b98ea57 Compare September 11, 2026 15:02
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.

2 participants