Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Support codec endpoint templating and more flexible codecs #444

Merged
merged 2 commits into from
Mar 29, 2022

Conversation

robholland
Copy link
Contributor

What was changed

Support {namespace} templating in endpoint URL and send X-Namespace header. Don't assume that the payload count returned from the codec server will match what we sent.

Why?

This allows for URL separation of encoders for different namespaces as encouraged by our sample code server. This is inline with the tctl support in temporalio/tctl#161.

Also no longer assume that payload count will be consistent before/after decoding as some codecs may benefit from mapping multiple payloads into one (for example, better compression ratios).

Checklist

  1. How was this tested:
    Tested against the remote codec server in samples-go.

This allows for use cases like compression where the codec may compress multiple payloads into one.
@robholland robholland merged commit f04ba51 into master Mar 29, 2022
@robholland robholland deleted the rh-payloads-count branch March 29, 2022 07:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants