Questions J Oliver EventStore V2.0

I am starting a project using CQRS and intend to use J Oliver EventStore V2.0 as an event persistence mechanism.

1) In the documentation, ExampleUsage.cs uses 3 serializers in the "BuildSerializer". I suppose this is just to show the flexibility of the deserialization process?

2) In the case of "Restart after failure", when some events were not sent, I believe that I need a start code that calls GetUndispatchedCommits () and then sends them, right?

3) Again, in “ExampleUseage.cs” it would be useful if “TakeSnapshot” added a third event to the eventstore and then “LoadFromSnapShotForward” not only retrieved the most recent snapshot, but also retrieved the events that were after the snapshot to simulate unit recovery.

4) I do not see the use of saving old pictures. Can you give an example of use where they would be useful?

5) If I have a service that handles receiving commands and generating events, then what proposed strategy tracks the number of events since the last snapshot for this unit. Of course, I don’t want to refer too often to "GetStreamsToSnapshot".

6) In the SqlPersistence.SqlDialects namespace, the sql operator name is "GetStreamsRequiringSnaphots" and not "GetStreamsRequiringSnapShots"

+3
source share
1 answer

1) There are several “basic” serializers, such as the Binary, JSON, and BSON serializers. The other two in the example - GZip / compression and encryption serializers - are batch serializers and are intended only to modify what has already been serialized into a byte stream. For example, I am just demonstrating flexibility. You do not need to encrypt if you do not want to. Actually, I have a job in which simple JSON works, which makes debugging very simple, because all this is text.

2) SynchronousDispatcher AsychronousDispatcher , . .

3) , "" , concurrency . " ". .

, - , SLA. , SLA, , . , "" . API EventStore, , .

4) , , " " . . , , , , .

5) IPersistStream, GetStreamsRequiringSnapshots. 50, , , 50 . (, , ) .

6) "" - . , "-" "-", - "-".

+3

All Articles