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

Event structuring #179

Merged
merged 10 commits into from
Jul 26, 2018
Merged

Event structuring #179

merged 10 commits into from
Jul 26, 2018

Conversation

erwinvaneyk
Copy link
Member

Before events where published and received with unstructured payloads; based on the type the consumer would need to infer what the payload of the event should be. This made the events hard to understand, and also easy to make mistakes in.

This PR changes this by turning the events into explicit structs that contain the payload. That way the payload is coupled to the event type.

Additionally this PR further cleans up the event related packages. Moving the API-specific things (events, aggregates) to the API package.

@erwinvaneyk erwinvaneyk merged commit 5a8f380 into master Jul 26, 2018
@erwinvaneyk erwinvaneyk deleted the event-structuring branch July 26, 2018 12:39
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

Successfully merging this pull request may close these issues.

1 participant