Support PID alias in the send_msg effect - #653
Draft
dumbbell wants to merge 1 commit into
Draft
Conversation
Collaborator
Author
|
I didn’t change the documentation. I wanted to discuss the idea and its implementation first. I’m implementing a feature in Khepri to allow to send the result of a command to a specific process which may not be the caller (as part of the batching effort). I would like to be able to set a PID alias instead of a PID to make it resistant to log replay: the result should not be sent a second time to that designated process. As noted in a couple comments in the code, it’s impossible to determine the PID or the node of a PID alias. Therefore, the |
This is the same as a PID except that the process who created its alias can decide if it is still interested in a reply or not. If the alias is deleted, the message won't reach the process mailbox. However, it is not possible to query the PID or its node from an alias. In the context of Ra, it is impossible to implement the `local` option of the `send_msg` effect. Because of this, the message is always sent from the leader.
dumbbell
force-pushed
the
support-pid-alias-in-send_msg-effect
branch
from
August 27, 2026 08:57
b4af6af to
4d07f4d
Compare
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.
This is the same as a PID except that the process who created its alias can decide if it is still interested in a reply or not. If the alias is deleted, the message won't reach the process mailbox.
However, it is not possible to query the PID or its node from an alias. In the context of Ra, it is impossible to implement the
localoption of thesend_msgeffect.Because of this, the message is always sent from the leader.