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

Factory w/supervision pattern looks broken #5

Open
arosien opened this issue Nov 10, 2011 · 0 comments
Open

Factory w/supervision pattern looks broken #5

arosien opened this issue Nov 10, 2011 · 0 comments

Comments

@arosien
Copy link

arosien commented Nov 10, 2011

If the Chatter or RoomChatter actors blow up, say from an exception being thrown from the inner Chat or MultiUserChat objects, then the ChatSupervisor will restart those actors. However, this will create new actors that the external client doesn't know about, because the supervisor only returns the original actor when the "factory" method is invoked (CreateChat, etc.)

One way to solve this is that the newly (re-)created Chatter/RoomChatter object should reply with its ref to the sender of the create message, rather than the supervisor doing this. That way the receiver can do something with the recreated actor, like registering the parent, etc.

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

1 participant