Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
A reason for the post is to get traction and others to use it to figure stuff like this out. When I ported the wtf-dial project to use this pkg the Timestamp property is used https://github.com/hallgren/wtf/blob/main/es_dial.go#L84 to set the last updated property. Reason and Timestamp is related to the event itself (it enrich the event) Correlation id relates to the the command that triggers the event and belongs in metadata. That sad this is my opinion and I can be dead wrong :)
Check out eventually to get a better idea: https://github.com/eventually-rs/eventually-go
Its been a year since I posted https://www.reddit.com/r/golang/comments/drdyqm/eventsourcing_in_go/ and asked for feedback for my eventsourcing pkg.