dead-letter store for commands

Hi,

I am looking at how to best implement some sort of dead-letter store for commands .When a command invocation fails, I would like to retry a couple of times and when still failing persist it somewhere so that administrators can have a look and act if necessary.

For this the IntervalRetryScheduler seems like a good start, but it’s missing a callback that gets invoked when maxretry is reached so I’ll need to override-copy scheduleRetry() to do my thing. Is there a better way perhaps to implement this ? I don’t want to handle the retry on the messaging layer.

Thanks,
Jorg

I came to the realization that this should be implemented on the level of CommandCallback.onFailure(), instead of the retry scheduler.

Thanks,
Jorg

Hi Jorg,

I’m glad that you managed to solve the problem. I think that it is the right approach, and don’t expect the framework to add any additional support for this type of problems.

Cheers,
Milan.