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

streamId & aggregateId difference? #19

Closed
brighthas opened this issue Aug 18, 2014 · 2 comments
Closed

streamId & aggregateId difference? #19

brighthas opened this issue Aug 18, 2014 · 2 comments

Comments

@brighthas
Copy link
Contributor

streamId & aggregateId difference?

and document detailed please.

@brighthas
Copy link
Contributor Author

es.getEventStream({
  aggregateId: 'myAggregateId',
  aggregate: 'person',          // optional
  context: 'hr'                 // optional
}

context & aggregate what mean?

@adrai
Copy link
Contributor

adrai commented Aug 18, 2014

streamId is just for backwards compatability... at the end it's always aggregateId...
In DDD terms aggregate and context are just to be more precise in language. For example you can have a person aggregate in the context human ressources an a person aggregate in the context of business contracts...
So you can have 2 complete different aggregate instances of 2 complete different aggregates (but perhaps with same) in 2 complete different contexts...

adrai added a commit that referenced this issue Aug 18, 2014
@adrai adrai closed this as completed Aug 19, 2014
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

2 participants