When to use Ash.Oban vs Ash.StateMachine
have a very simple pipeline that needs to be durable, i.e. automatic retry. I am porting a Python code that uses Temporal.io durable execution.
I am not sure if I have to use Oban or StateMachine, when is each more suitable?
I am not sure if I have to use Oban or StateMachine, when is each more suitable?
Solution:Jump to solution
in general combining
ash_state_machine
and ash_oban
to trigger state transitions is one of my favorite combinations of Ash features out there7 Replies
Generally speaking, I would suggest using them together actually 😄
ash_state_machine
is only about the rules about what transitions can be madeSolution
in general combining
ash_state_machine
and ash_oban
to trigger state transitions is one of my favorite combinations of Ash features out thereGot it. I have to look for an example of this working somewhere. I am very newbie and a lern-by-example learner.
Yeah, this is something it would be great to have a full-blown example of TBH but I'm not sure if such a holistic example exists
I can start with a state_machine and just use oban afterwards... seems a baby step.
Yep! You can even start with a state machine with no data layer
and just test transitions
and then add persistence with a data layer
and then add automation with ash_oban