Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArchivableEventItem - Allows events to be archived #257

Open
mumby0168 opened this issue Mar 18, 2022 · 0 comments
Open

ArchivableEventItem - Allows events to be archived #257

mumby0168 opened this issue Mar 18, 2022 · 0 comments
Labels
event-sourcing Related to the CosmosEventSourcing project. help wanted Extra attention is needed up-for-grabs 🙏🏽 Happy to consider a pull review to address this issue

Comments

@mumby0168
Copy link
Collaborator

It might be the case that events might need to be archived and then removed after a period of time.

public class ArchivableEventItem : EventItem
{
     public bool IsArchived { get; set; }
}

This can use the time to live property to mark the event for deletion after a period of time.

There could then be a new method on the IEventStore<TEventItem> something like _eventStore.ArchiveAsync("partitionKeyValue", x => x.Id == "A")

@mumby0168 mumby0168 added the event-sourcing Related to the CosmosEventSourcing project. label Mar 18, 2022
@IEvangelist IEvangelist added help wanted Extra attention is needed up-for-grabs 🙏🏽 Happy to consider a pull review to address this issue labels Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event-sourcing Related to the CosmosEventSourcing project. help wanted Extra attention is needed up-for-grabs 🙏🏽 Happy to consider a pull review to address this issue
Projects
No open projects
Cosmos Event Sourcing
Awaiting triage
Development

No branches or pull requests

2 participants