MerrionComputing / EventsSourcing-on-Azure-Functions

A library to demonstrate doing Event Sourcing as a data persistence mechanism for Azure Functions
MIT License
103 stars 20 forks source link

Delete notification #36

Closed MerrionComputing closed 4 years ago

MerrionComputing commented 4 years ago

When an event stream is deleted this also needs to raise a notification via eventhub,

bartelink commented 4 years ago

🤔 Do you also do soft deletes / tombstoning ? (For instance, in CosmosDB, and many other stores, you don't get notification of deletes; thus I'd question hooking deletes and instead be looking for a feature where one can do some form of tombstoning for a stream that needs to be forgotten or similar)

MerrionComputing commented 4 years ago

I don't really - but I am thinking this through.

My thought are that a deleted for business reasons thing should be an event on the event stream that can be seen by a classifier that marks the entity as deleted.

True deletion of event streams is something that should happen to event stream backed entities with an intentionally short lifespan like commands, queries, sagas and so on.

MerrionComputing commented 4 years ago

Added - EVENT_TYPE = @"eventsourcing.DeletedEntity"

MerrionComputing commented 4 years ago

Tested notification - can close this now.