DomainEvents and CommandEvents not persistent

17 views
Skip to first unread message

Ron Smith

unread,
Apr 30, 2014, 12:52:56 AM4/30/14
to sculptor...@googlegroups.com
I'm porting an older Sculptor app to the latest and greatest Sculptor version, and am getting errors on the 'not persistent' modifier on any CommandEvent or DomainEvent objects.  The event-driven tutorial (http://sculptorgenerator.org/documentation/event-driven-tutorial#domain-events) indicates these are never persistent now.  So I'm removing the qualifier which is no longer needed nor legal.

I recall there was some discussion as to whether command events or domain events would be persisted in an EDA/CQRS approach, but don't we need to support the persistence of some types of events?

Ron

Torsten Juergeleit

unread,
Apr 30, 2014, 7:45:10 AM4/30/14
to sculptor...@googlegroups.com
I recall there was some discussion as to whether command events or domain events would be persisted in an EDA/CQRS approach, but don't we need to support the persistence of some types of events?

The chapter Persistence mentions that using the keyword "persistent" in an event type will add the persistence support.

IMHO are Sculptors non-persistent events sufficient for implementing "simple" EDA (pub/sub). But for implementing full-blown event sourcing or CQRS something like a generic event store seems to be more appropriate. For the latter one I would consider using a fully-fledged framework like Axon2 with its repository and event store implementations.

/Torsten
Reply all
Reply to author
Forward
0 new messages