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

Dispatch EVENT_APPEND_TO and EVENT_CREATE in transactional event store when not inside transaction #38

Merged

Conversation

destebang
Copy link

@destebang destebang commented Apr 2, 2018

In some situations, a transactional event store might be used without a transaction manager or any transaction at all. However, with current implementation, is only possible to publish events from a transactional event store when a transaction is commited.

I think that behaviour would be more accurate if event publisher not only checks if the event store is transactional but if it's wrapped in a transaction in order to publish or cache them until transaction commit/rollback.

Copy link
Member

@prolic prolic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@prolic
Copy link
Member

prolic commented Apr 2, 2018

@codeliner wanna check as well?

@prolic prolic self-assigned this Apr 2, 2018
@codeliner
Copy link
Member

LGTM

@codeliner codeliner merged commit bc2067e into prooph:master Apr 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants