Axon 4.0 : Retry command in saga

Hi,

I have a saga and one of the steps is to download data from external system via REST API.
Based on the reponse I need to either repeat the call in few minutes or dispatch an event with the result

What is the recommended way?
Thanks for replies.

Cheers

Pavel

Hi Pavel,

in general, you would use a scheduler for these cases. In a Saga, it would be no different, although you could use a DeadlineManager or an EventScheduler as well. The main difference between the latter two is that the EventScheduler publishes an event (potentially having it stored in the event store), and the deadline manager only triggers the Saga that scheduled the deadline (keeping the deadline itself “under the radar”).

Cheers,

Allard

Hi Allard,

thank you for your reply. I’m using Axon 4.0 and it seems that DeadlineManager is not present in Axon 4 any more.
I would prefer not to store this kind of events in the event store.
Is there any replacement for DeadlineManager?

Cheers

Pavel

Dne pátek 16. listopadu 2018 9:33:59 UTC+1 Allard Buijze napsal(a):

Actually, the DeadlineManager is still there. It just moved to another package:
org.axonframework.deadline.DeadlineManager
org.axonframework.deadline.quartz.QuartzDeadlineManager

Cheers,

Allard

Great! I didn’t find it in Axon 4.0 documentation so I thougt it was removed.

Cheers

Pavel

Dne pátek 16. listopadu 2018 10:30:30 UTC+1 Allard Buijze napsal(a):