Replies: 7 comments
-
|
Thanks for your feedback, very valuable!
All great suggestions, and I'll try exploring these when I get more time, thank you :) |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
Would an |
Beta Was this translation helpful? Give feedback.
-
Yes, I've encountered this too.
|
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Yeah, if that hook contained the actor ref and some sort of " |
Beta Was this translation helpful? Give feedback.
-
|
@marcaddeo I've started exploring the addition of an As a result, the best we can provide in the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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_startcould 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.
Beta Was this translation helpful? Give feedback.
All reactions