You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering what your thoughts would be on passing a cancellation token to each of the funcs in the .net implementation. This can then be checked, while the code is running, to understand if leadership has been lost.
I took a look at implementing leadership election in dotnetcore a while back using etcd and used this pattern. Full code here, simple example below.
I'm unclear on how feasible this is in the Metaparticle code but if there is agreement that it is an worthwhile addition I can investigate further and hopefully create a PR.
The text was updated successfully, but these errors were encountered:
Under what circumstances would the cancellation be requested? Is this so that as a user that is currently the master, we can request a cancellation of that mastering?
If so, I think that's a great idea, but I think you would pass that to the Election rather than to the isNowMaster function...
I could definitely be missing something here, so please discuss more.
I was wondering what your thoughts would be on passing a cancellation token to each of the funcs in the .net implementation. This can then be checked, while the code is running, to understand if leadership has been lost.
I took a look at implementing leadership election in dotnetcore a while back using etcd and used this pattern. Full code here, simple example below.
I'm unclear on how feasible this is in the Metaparticle code but if there is agreement that it is an worthwhile addition I can investigate further and hopefully create a PR.
The text was updated successfully, but these errors were encountered: