Are snapshots supported in EventStoreDB?

前端 未结 1 414
时光取名叫无心
时光取名叫无心 2021-02-07 04:54

I am seriously thinking of using EvenStore from Greg Young, for implementing a system based on events. However, I am not sure whether EventStore from Greg Young supports Snapsho

1条回答
  •  遇见更好的自我
    2021-02-07 05:32

    Yes, just put them in a stream and read the first value of that stream (backwards).

    Eg:

    /streams/foo
    /streams/foo-domainsnapshot
    

    When reading, read the last snapshot from the snapshot stream, then read forward from the version it points to.

    You can also have many streams with many different snapshots. I believe the common domain wrappers support this already.

    Also this would be answered faster likely in our discussion group (linked on website)

    0 讨论(0)
提交回复
热议问题