We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Event Handler State is provided in the init/1 callback and can be updated in each handle/2 https://hexdocs.pm/commanded/1.3.0/Commanded.Event.Handler.html#module-event-handler-state
This is pretty handy, but at this moment the state is ephemeral, which means that on server restart, there is a need to reconstruct the state.
It would be awesome if the EventHandler state could be persisted in the same fashion as the Process Manager state.
commanded/lib/commanded/process_managers/process_manager_instance.ex
Lines 82 to 84 in 1c8af07
Line 243 in 1c8af07
If there is value in doing this I can start implementing this.
The text was updated successfully, but these errors were encountered:
Yes, I agree this would be a useful opt-in feature for event handlers. A pull request would be very welcome, thanks!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Context
Event Handler State is provided in the init/1 callback and can be updated in each handle/2
https://hexdocs.pm/commanded/1.3.0/Commanded.Event.Handler.html#module-event-handler-state
This is pretty handy, but at this moment the state is ephemeral, which means that on server restart, there is a need to reconstruct the state.
It would be awesome if the EventHandler state could be persisted in the same fashion as the Process Manager state.
commanded/lib/commanded/process_managers/process_manager_instance.ex
Lines 82 to 84 in 1c8af07
commanded/lib/commanded/process_managers/process_manager_instance.ex
Line 243 in 1c8af07
If there is value in doing this I can start implementing this.
The text was updated successfully, but these errors were encountered: