Resurrecting this thread as it was not resolved. eg Adding the same message Id to a stream.
I’m synching event stores one in the cloud one in the field - when there are issues and bugs ( eg persist of position didn’t work) I get duplicates which then cause interesting issues… My preferred behavior is that it would do nothing and not add it,
I cant used ver/ concurrency as the message comes from a different store.
Adding again is not great since the quantity of data can be large , eg while most of the time the data is small some synch could bring down 100Mb and I don’t want to read the stream for each message to see if that id was already added… An error would be better than current behavior as it could be ignored /logged as a warning. Then again its probably hard to implement an error / ignore behind the scenes without a read unless I’m missing something…
If I have to read is there an efficient way to get all ids in the stream…