Why 'EventStreamElement' has no 'sequenceNr' from EventEnvelope?


(Andrey Ladniy) #1

I try implement fast communication with Sender actor which handles last processed event number:
a. if last processed number - sequence number of event == 1 => send to next actor
b. if last processed number - sequence number of event > 1 => currentEventsByPersistenceId for each send to next actor
c. if last processed number - sequence number of event < 1 => no action (deduplication)

but for if last events was not sended and have some crash, I want use ReadSideProcessor for restoring state with not sended events). But EventStreamElement has no sequenceNr so I can’t use this scenario.