Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📖 Docs PR preview links |
4747f02 to
4d64af2
Compare
d87ed40 to
6e961f5
Compare
stephanos
reviewed
Jan 23, 2026
docs/encyclopedia/workflow-message-passing/handling-messages.mdx
Outdated
Show resolved
Hide resolved
| #### Message IDs and handling Continue-As-New {#exactly-once-message-processing} | ||
|
|
||
| Many developers want their message handlers to run exactly once--to be idempotent--in cases where the same Signal or Update is delivered twice or sent by two different call sites. Temporal deduplicates messages for you on the server, but there is one important case when you need to think about this yourself when authoring a Workflow, and one when sending Signals and Updates. | ||
| Usually, you'll want your message handlers to run exactly once--to be idempotent--in cases where the same Signal or Update is delivered twice. For Updates, Temporal handles this for you on the server, by deduplicating according to the Update ID. For Signals, you should use a custom idempotency key that you send as part of your own signal inputs, implementing the deduplication in your Workflow code. The Update ID is set automatically to a UUID, but you can set it yourself. |
Contributor
There was a problem hiding this comment.
I'd move the last sentence about UUID next to the Update sentence. The Signal sentence breaks the flow there in the middle.
Contributor
There was a problem hiding this comment.
It may be simpler to just ask people to check idempotency. And then explain the reasoning that it's necessary for signals and update plus CaN .
That way, if they add CaN later, they won't cause a bug. And I don't think there is much harm to a redundant check.
| See the links below for how to ensure handlers are finished in your SDK. | ||
|
|
||
| #### Ensuring your messages are processed exactly once {#exactly-once-message-processing} | ||
| #### Message IDs and handling Continue-As-New {#exactly-once-message-processing} |
Contributor
There was a problem hiding this comment.
I like that this is focused on CaN now. The part about the same Update/Signal coming in from different clients is now only implied. That might be fine.
flippedcoder
reviewed
Feb 4, 2026
docs/encyclopedia/workflow-message-passing/handling-messages.mdx
Outdated
Show resolved
Hide resolved
flippedcoder
reviewed
Feb 4, 2026
docs/encyclopedia/workflow-message-passing/handling-messages.mdx
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Clarifies the section on idempotency keys and CAN. There were reports that for the following sentence
it was not obvious that it referred to the situation when the workflow is using CAN.