-
Notifications
You must be signed in to change notification settings - Fork 23
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 it available some kind of init actor #155
Comments
Hello,
Can you provide more details here? Do you mean In general, there are several options for how to implement the "init" actor. Firstly, if a group routes Secondly, you can provide configuration to the destination group and use Thirdly, you can mark your group as Anyway, if you would like to provide more information, I can improve the acromion (probably start filling the "Patterns" section to show how to implement some common use cases). |
@loyd thanks a lot for your response! There are a lot of interesting things that I even didn't know about Before you replied I had a working version that was doing that I wanted but I'm not sure about usage of elfo in right way. I have some kind of next code to make implementation:
This actor runs that sends all necessary spawn messages, collects responses from actor groups and then terminates. For now it's something that I need but I'm not sure that I've made it right way |
@lucky-pucka This is exactly the first pattern described above. Note: your spawner actor will be started on every reconfiguration (e.g. try to send |
This is described in the usage example elfo/examples/usage/config.toml Lines 1 to 21 in 8b7ae1a
But obviously should be documented in the actoromicon. Let this issue be open until the first two patterns are documented in the actoromicon. |
@loyd do I understand correctly that |
Hello!
Thanks a lot for such great actor framework and your work guys!
But I have an issue how to make some kind of init stage. For now I have some actors and one of them read config during routing and spawn all necessary actors. It becomes not convenient when I have more then 3 logical actors. Is there some way to make something like in Docker with init container but with actor in Elfo?
Thanks for your reply in advance!
The text was updated successfully, but these errors were encountered: