-
Notifications
You must be signed in to change notification settings - Fork 644
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
Allow Actors with a SyncContext to be registered in the SystemRegistry #504
Comments
This will really help with multi actor scenarios. Would love to see this feature implemented in the core. |
I think allow actors with a SyncContext can use broker is also necessary. I'm not sure if there's a way to boardcast a message to all actors inside one SyncArbiter. |
Any update on this? I'm also looking for this. |
|
Oh sad to hear that. It's such a nice library. Does most of the heavy lifting in writing actor code. Infact it's one of the fastest web framework too... |
Is there any pointer here so that I can write that code and generate PR |
|
Expected Behavior
Being able to do
MySyncActor::from_registry()
and have it work like async actors.Current Behavior
Currently the
SystemRegistry
can only have actors with aContext
. Thus you need another system to keep track of the sync actors and their addresses. This is annoying if you rely mostly on the registry but have a few sync actors for database calls for exemple.Possible Solution
set
method on theSystemRegistry
like:Context
A lot of libraries are sync (diesel is the one we use) and likely won't change anytime soon. Currently the
SyncContext
andSyncArbiter
kind of live in their own world and are not well integrated in the whole ecosystem. I propose we change that!The text was updated successfully, but these errors were encountered: