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

ModuleDSL definition #123

Open
johanhaleby opened this issue Oct 29, 2022 · 0 comments
Open

ModuleDSL definition #123

johanhaleby opened this issue Oct 29, 2022 · 0 comments

Comments

@johanhaleby
Copy link
Owner

It would be good to differentiate between an initialized module and a ModuleDefintion. E.g. this would be nice:

val moduleDefinition = module(name = "something") {
    commands {
      ...
    }
    sagas {
      ...
    }
    policies/triggers {
      ...
    }
}

moduleDefinition.initialize(eventStore, subscriptionModel, domainQueries, ...)

ModuleDefinition is just data which means that it's easier to compose. Note that it must be possible to compose modules and not only module definitons, since for certain modules you may want different event store implementations or subscription models etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant