-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Clarification]: Hedging contexts #1727
Comments
Because of the nature of hedging strategy, there might be multiple parallel actions being executed. To avoid race conditions we "duplicate" the original context passed to the strategy (primary) and provide it as an argument to action generator. When hedging finishes we merge the context that was used for accepted action and merge it back to original context. |
It seems like we have some sort of fork-join model (or fan-out + fan-in). And that raises a lots of questions:
So, my main point here is that without proper documentation i think it is easy to misuse these contexts. Because V8 is already out we could not perform a renaming but |
@peter-csala I have created a #1749 to improve docs regarding the contexts. |
Is your feature request related to a specific problem? Or an existing feature?
While I was playing with hedging strategy I realized that we have
PrimaryContext
andActionContext
onOnHedgingArguments<TResult>
struct.It is unclear:
ActionContext
Describe the solution you'd like
I think we could improve on the documentation comments also on the hedging documentation page.
Additional context
No response
The text was updated successfully, but these errors were encountered: