Take this code:
var catchUpSubscriptionSettings = new CatchUpSubscriptionSettings(1, 500, true, true,"CatchupTest");
eventStoreConnection.SubscribeToStreamFrom("myStream",
-1,
CatchUpSubscriptionSettings.Default
(e,r) => {
//Event Appeared
},
(eventStoreCatchUpSubscription) =>{
//LiveStarted
}
,
() =>{
//Subscription dropped
});
Since we have instructed EventStore to read 500 events at a time, would the following be true:
1. EventStore reads a stream containing 500 or less
2. EventAppeared starts handling these events
3. Almost instantly, liveStarted would be fired ebcause EventStore *thinks* it's at the end of the stream
I appreciate this may well be by design, but just wanting to understand.
An issue we might have is, the last batch of 500 gets read, and a problem occurs, but we signal that LiveStarted
Maybe it's more a self amde problem here. My understanding was LiveStarted was a signal to say "All your catchup events have been procssed by EventAppeared"