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

Decouple stream id type from event id type #17

Closed
tomasaschan opened this issue Oct 4, 2017 · 0 comments
Closed

Decouple stream id type from event id type #17

tomasaschan opened this issue Oct 4, 2017 · 0 comments

Comments

@tomasaschan
Copy link
Owner

It might make sense to allow e.g. string for stream id, while using e.g. Guid or long for the event id.

Example use case:

  • You have an existing database that uses long for ids, so you want to use long for the event id as well.
  • You want to refer to your streams with some composite information, e.g. aggregate type + id. The easiest way to achieve that would be to use e.g. "MyAggregate-123" as the event stream for an aggregate of type MyAggregate with id 123.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant