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

Is AggregateCoordinator supervisor? #3

Open
varghesep opened this issue Jun 28, 2015 · 3 comments
Open

Is AggregateCoordinator supervisor? #3

varghesep opened this issue Jun 28, 2015 · 3 comments

Comments

@varghesep
Copy link

Is the role of AggregateCoordinator a supervisor?

@Horusiath
Copy link
Owner

AggregateCoordinator serves few purposes:

  • It works like a router in the sense that it resolves an aggregates that should receive messages and forwards requests to them. Any messages that are addressed to a particular actor while it's not live yet are buffered by coordinator.
  • It works as an actor equivalent of managed heap. It creates corresponding actors when necessary and collects them, if their total number will exceed configured threshold.
  • Finally it also supervises it's children, dealing with their failures and recreates them if necessary.

@varghesep
Copy link
Author

Thanks. For the third option, isn't a supervisor strategy needed?

@Horusiath
Copy link
Owner

In akka, each actor is prepared to be potential supervisor. Also each one of them has a default supervisor strategy, which in this case is sufficient.

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