-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Some immature thoughts on inter-actor communication #75
Comments
Thanks for your feedback, very valuable!
All great suggestions, and I'll try exploring these when I get more time, thank you :) |
Something tangentially related I've been thinking about; would it be possible for actors to know about their parent, child, sibling actor refs when actors are supervised/linked? Is that even a good idea? When I first started using Kameo, that's how I expected the parent/child supervision to behave (I'm not sure whether or not this is how Erlang/OTP function) but ended up realizing I need to pass the refs manually between the actors that need to communicate with each other. |
Would an |
Yes, I've encountered this too.
|
This mainly depends on the application’s design requirements, especially in applications where actors have strong dependencies on each other. For example, separating an actor that initializes a It’s a bit like |
Yeah, if that hook contained the actor ref and some sort of " |
@marcaddeo I've started exploring the addition of an As a result, the best we can provide in the |
Thank you very much for your contributions to this project. I have already used it in practical projects, and the asynchronous features have been very helpful.
Here are some thoughts I had while using it in real projects:
Similar to
on_link_died
, perhaps a hook likeon_link_start
could be provided to know whether other actors have started successfully.Alternatively, a broadcasting feature like BroadcastMailbox (which unfortunately has been closed) could be implemented, allowing other actors to notify the parent actor.
I know that
PubSub<M>
currently exists, but it only supports a single message type. I hope to see something similar to actix_broker that provides convenient multi-message type publishing/subscribing throughactix_broker::BrokerSubscribe
/actix_broker::BrokerIssue
, along with enhancements for global (system) messages or group (arbiter) messages.Looking forward to more distributed features as well.
The text was updated successfully, but these errors were encountered: