cadence-workflow - Cadence 或 Temporal 中的自定义工作流程
问题描述
我计划在架构中使用 Cadence 或 Temporal Workflow,但是我们计划在决定工作流时赋予用户很大的权力。Cadence 和 Temporal 在他们的用例中都提到他们的 SDK 支持自定义 DSL,但我看不到该功能。你能帮帮我吗?
解决方案
Yes, custom DSLs can be implemented on top of Cadence/Temporal with a relative ease. The basic idea is that Temporal workflow definition is code and you have to write a simple interpreter of the DSL using that code. As code is fault tolerant and durable the DSL will get all the benefits of Cadence / Temporal.
Here is a DSL sample using Go SDK. We are going to add the Java one later.
推荐阅读
- ionic-framework - 离子 - 在不同屏幕中存储和显示相同信息的正确方法
- java - 在 AndroidX 中实现 Glide 4.10.0 时出现错误 GeneratedAppGlideModuleImpl is implementation不正确
- ios - Runner.app 大小约为 400mb。如何减少它?
- c# - 根据第一个方法中的 if 条件停止第二个方法执行
- python - 用户定义出错时如何解决问题
- php - 财政年度范围内的匹配月份
- javascript - 如何更新函数内部全局对象的值,然后使用 JS 中的另一个函数访问其值?
- java - 我的方法只返回从 while 循环中获得的最后一个值
- python - Getting the error: TypeError: 'str' object is not callable when running a particular function twice
- c# - 将变量重置为其原始状态