Skip to content

External storage and codec server sample#474

Merged
jmaeagle99 merged 2 commits into
temporalio:mainfrom
jmaeagle99:extstore
May 20, 2026
Merged

External storage and codec server sample#474
jmaeagle99 merged 2 commits into
temporalio:mainfrom
jmaeagle99:extstore

Conversation

@jmaeagle99
Copy link
Copy Markdown
Contributor

What was changed

Add sample for external storage with codec server that supports multiple namespaces and downloads.

Why?

Provide a baseline reference for how to use external storage with the S3 driver and an updated codec server.

Checklist

  1. How was this tested: Locally ran; investigating possibility of adding tests
  2. Any docs updates needed? No

@jmaeagle99 jmaeagle99 requested a review from a team as a code owner May 20, 2026 15:56
Copy link
Copy Markdown

@cconstable cconstable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

signal.Notify(sigCh, os.Interrupt)
select {
case <-sigCh:
_ = srv.Close()
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a production codec server, we would want to drain current requests/tasks before shutting down right? I don't know if we offer guidance on this or it's just a "yea you should know that" kind of thing. I don't have strong feelings about mentioning that here or not because it might be too in the weeds.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These samples tend to be about how to use features, not necessarily about production best practices. However, in the case of codec servers, it might be warranted since these are our main demonstrations of these types of servers. I can do a separate follow up for this.

Comment thread external-storage/README.md Outdated
@jmaeagle99 jmaeagle99 merged commit 3dd1f70 into temporalio:main May 20, 2026
4 checks passed
@jmaeagle99 jmaeagle99 deleted the extstore branch May 20, 2026 16:59
Copy link
Copy Markdown
Contributor

@yuandrew yuandrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to have a test, most of our samples have a test to go with it, I guess for when we bump the SDK version, we have another sanity check?

Comment thread external-storage/README.md
Comment thread external-storage/README.md
Comment thread external-storage/README.md
Comment thread external-storage/README.md
Comment thread external-storage/workflows.go
Comment thread external-storage/README.md
Comment thread external-storage/README.md
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.

3 participants