Skip to content
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

Docs questions #521

Open
AHBruns opened this issue Jan 20, 2023 · 0 comments
Open

Docs questions #521

AHBruns opened this issue Jan 20, 2023 · 0 comments

Comments

@AHBruns
Copy link

AHBruns commented Jan 20, 2023

So, I've been using Commanded for a couple weeks, and theres a few things I really wish the docs had in them. I figured I'd leave them here. If I have time, and a good enough grasp of some of these concepts, I'd be happy to PR docs. As of now, I'm not actually sure I know the answer to these questions:

  • Process manager life cycle. It's not at all clear in what order the different callback execute. For example, does after_command/2 execute after apply/2 or before? The life-cycle is important info.
  • Process manager persistence. Unlike aggregates where its clear how they are persisted (they have an event stream), aggregates are a mystery. How are they persisted? Where? How are failures handled. E.g. if handle/2 has run but apply/2 has not, will the aggregate re-process the event when it restarts? When does dispatching actually happen?
  • Middleware execution. Is after_failure assured to run if the dispatching process dies during the dispatch? What about if the aggregate instance dies during dispatching? What about if the commanded app dies?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant