Re:Temporal raises $103M in Series B funding
by swyx on Thursday February 17, 2022 @07:57AM
(#30372551)
yeah use signals https://docs.temporal.io/docs/typescript/workflows#signals-a...
example usage in a billing workflow https://docs.temporal.io/docs/typescript/subscription-tutori...
Re:Temporal raises $103M in Series B funding
by machiaweliczny on Thursday February 17, 2022 @08:31AM
(#30372835)
Thanks. I guess I could have activity to set user.hasAccess=false when I get cancel signal.
I wonder how such long running workflows can be updated due to business requirements change. Say we now want to have longer trial period (so something that is not externalized via activity, like email wording for example).
Re:Temporal raises $103M in Series B funding
by swyx on Thursday February 17, 2022 @08:36AM
(#30372869)
yeah, use versioning!
https://docs.temporal.io/docs/typescript/patching
its not the simplest thing to do, and we have plans to make it simpler, but patching long running work while it is still running is inherently tricky. the good news is that at least we have a versioning story (and the failure mode is stopped progress) rather than handrolled systems which basically have “deploy and pray” strategies
With event based system I would just set order=canceled and then for example cron to deliver stuff via email would not pick it up.