SequenceEventStore read and write behavior

27 views
Skip to first unread message

sherifsa...@gmail.com

unread,
Jan 20, 2016, 10:52:18 AM1/20/16
to Axon Framework Users
From Axon documentation:

The SequenceEventStore is a wrapper around two other Event Stores. When reading, it returns the events from both event stores. Appended events are only appended to the second event store. This is useful in cases where two different implementations of Event Stores are used for performance reasons, for example. The first would be a larger, but slower event store, while the second is optimized for quick reading and writing.

Does that mean that the SequenceEventStore always merges the 2 event stores for reads, but uses the 2nd event store only for writes?


Allard Buijze

unread,
Jan 22, 2016, 2:36:24 PM1/22/16
to Axon Framework Users
Hi,

yes, that's exactly what it means. It is useful when you have a mechanism to move older events from one event store to another (cheaper) one.

Cheers,

Allard

--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages