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

Generic message types for internal management #1

Open
9 of 10 tasks
vertexclique opened this issue Jul 22, 2019 · 4 comments
Open
9 of 10 tasks

Generic message types for internal management #1

vertexclique opened this issue Jul 22, 2019 · 4 comments

Comments

@vertexclique
Copy link
Member

vertexclique commented Jul 22, 2019

We need some internal management for message types.

Lifecycle Commands (exposed)

  • Stop (stops polling exec or stops the children group's elements or supervised elements)
  • Kill (stops polling exec or cancels the children group's elements or supervised elements)
  • Start (start polling exec or start the children group's elements or supervised elements)

Notifications

  • Dead (when exec successfully finished its executiong or Stop/Kill was received or one the elements of the children group stopped)
  • Faulted (when exec panics or returns an error or one elements of the children group faulted)

Direct Communication (exposed)

  • Tell (a message)
  • Ask (a message with a channel to answer with another message)

Remote Communication (exposed)

  • Deploy (makes a supervisor supervise a new children group or supervisor)
  • Prune (TODO)
  • SuperviseWith (changes the supervision strategy of a supervisor)
@r3v2d0g r3v2d0g self-assigned this Oct 15, 2019
@r3v2d0g
Copy link

r3v2d0g commented Nov 8, 2019

@vertexclique is Prune still needed?

(Note that it is present in bastion but not used or supported though supported by System.)

@vertexclique
Copy link
Member Author

We can close this but having another issue for Remote Communication would be nice.

@r3v2d0g
Copy link

r3v2d0g commented Nov 9, 2019

@vertexclique Maybe Prune could be used to stop/kill a Children/Supervisor and completely remove it (ie. not restarting it even if it was supervised by a "one-for-all" supervisor)?

@vertexclique
Copy link
Member Author

That is the main idea of it. especially on distributed communication. So I think this can go under bastion-rs/artillery. Though we still need to iterate on this.

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

No branches or pull requests

2 participants