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

IEventItemProjectionBuilder<TEventItem> - Dead Letter Container Decorator #261

Open
mumby0168 opened this issue Mar 19, 2022 · 0 comments
Open
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

If we fail to handle a change from the change feed. We want to make sure that we store a copy of that event. We can write this EventItem directly to another container, acting much like a dead letter queue. We can then provide another processor that can poll this dead letter queue and try and re-process them, we could provide a mechanism that will only retry and event 5 times for example. If it still fails then we could log a critical failure. We can also allow a consumer to configure that a given exception means the event will never succeed, it can then be marked in the dead letter container as a critical failure.

Again I think we can use a decorator pattern to wrap a default implementation with something that catches these exceptions and deals with the dead-lettering.

@mumby0168 mumby0168 added the event-sourcing Related to the CosmosEventSourcing project. label Mar 19, 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
None yet
Development

No branches or pull requests

2 participants