zlacker

[parent] [thread] 2 comments
1. redact+(OP)[view] [source] 2019-05-27 09:29:01
You're absolutely right, in fact I have a whole package that is just that https://node-ts.github.io/bus/packages/bus-workflow/.

The problem is this. Let's say that I want to trigger a step in a "free trial" saga that sends an email to the customer 10 days after they sign up nudging them to get a paid account. If I can delay send this message for 10 days then it's easy.

However because SQS has a much shorter visibility timeout, I have to find a much more roundabout way of triggering that action.

replies(2): >>plasma+H >>kondro+nf2
2. plasma+H[view] [source] 2019-05-27 09:39:34
>>redact+(OP)
Yeah, that makes total sense. For some of our saga's (we don't use SQS -- we use a custom redis queue), we have the saga potentially wake up and immediately sleep again ("Nothing to do right now, defer again in a few days").

But yes, a quirk.

3. kondro+nf2[view] [source] 2019-05-28 12:20:30
>>redact+(OP)
How about Step Functions? Jobs can run for up to 12 months with wait steps. And can now send action tokens to services like SQS for completion later.
[go to top]