protoactor-dotnet icon indicating copy to clipboard operation
protoactor-dotnet copied to clipboard

Persistence.cs use callback with index

Open codrut51 opened this issue 1 year ago • 1 comments

At times certain persistence options don't allow you to delete an event and a common way to deal with this is to read the stream in memory, delete the stream, remove the desired event, and persist the stream. Some storages such as SQL or EventStoreDB will continue the index count from where it left resulting quite often in version conflicts. Rewriting this to use an Index in the callback can fix this bug/issue/inconvenience

Description

Purpose

This pull request is a:

  • [ ] Bugfix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added necessary documentation (if appropriate)

codrut51 avatar Oct 08 '24 11:10 codrut51

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 08 '24 11:10 CLAassistant