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

Open event store for non-aggregate events #535

Open
DavidBadura opened this issue Mar 11, 2024 · 1 comment
Open

Open event store for non-aggregate events #535

DavidBadura opened this issue Mar 11, 2024 · 1 comment

Comments

@DavidBadura
Copy link
Member

Currently the event store can only be used with aggregates. This limits the use of the subscription system. A hybrid approach of d event sourcing and doctrine orm with domain events is also made more difficult.

Maybe we can generalize the store a bit so that we can also store non-aggregate events.

The following needs to be solved:

  1. We don't have aggregate_name and aggregate_id. But we could probably solve it very easily by combining the fields in "stream", which is basically structured like this: "{aggregate_name}-{aggregate_id}". Then other systems could name their own stream such as: “doctrine” or “external”.

  2. We also have to make playhead optional because it doesn't always exist. We set the column as "nullable". We have to check if we can do this for all DB platforms regarding the unqiue constraint.

@DanielBadura
Copy link
Member

After our talks on the UserGroup @bwaidelich and I talked briefly about this topic and he send me some links to research.

Maybe some interesting information on this topic in these resources:

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