Skip to content
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

Complete supervision semantics #57

Closed
rogeralsing opened this issue Dec 25, 2016 · 3 comments
Closed

Complete supervision semantics #57

rogeralsing opened this issue Dec 25, 2016 · 3 comments
Labels

Comments

@rogeralsing
Copy link
Collaborator

Go has supervision, but we need to set the semantics around this.

@rogeralsing
Copy link
Collaborator Author

I propose that we make a new interface ChildRestartStatistics and let the context or some child object implement this interface.
GAM does not support remote supoervision, so we can simply ignore any cross process aspects here.

In Akka, the child container is responsible for keeping track of child restart stats.
We could simply let each actor keep track of their own restarts passing the ChildRestartStatistics interface of themselves to their parent supervisor.

This means that each Failure message would also contain the ChildRestartsStatistics instance. making it possible for the SupervisorStrategy to act upon that.
This instance could be immutable, and we could update it only once the child is restarted. thus sharing nothing.

@rogeralsing
Copy link
Collaborator Author

supervision

@rogeralsing
Copy link
Collaborator Author

This has been merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant