问题标签 [uber-cadence]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
80 浏览

java - 在 Uber Cadence 上获取注册活动

我正在开发一个使用 Uber Cadence Java Client 的项目。如何从代码中获取已注册活动的列表?

谢谢你。

0 投票
2 回答
115 浏览

cadence-workflow - 如何有效使用Worker、WorkflowClient

产品用例- 我们的产品有一个典型的用例,我们将有 n 个用户。每个用户将有 n 个工作流,并且每个工作流可以在任何时间(n 次)运行。

我希望这是任何工作流产品的典型用例。

我可以使用域来区分用户(我的意思是为每个用户创建一个域)?

我可以为每个用户创建一个 WorkflowClient 来服务他的所有工作流执行吗?或者对于每个请求,我是否需要创建一个 WorkflowClient?哪个是推荐的方法?

创建 Worker 对象以轮询任务列表的推荐方法是什么?

请不要误会我如果我问了什么毫无意义的事情

0 投票
2 回答
96 浏览

cadence-workflow - Scaling limitation of workflow workers due to continuous polling in Uber Cadece?

I am evaluating cadence for implementing our business orchestration. I understand that the workers continuously poll the task list for tasks to execute. My concern here is that will it cause any scale problems? The worker is always busy and continuously polling some database, along with this it also needs to execute the business logic so is there a possibility that it runs out of resources and then crashes or drops the tasks to execute?

How does this polling mechanism scale when we have millions of workflows? Will it cause delays in executing the workflow code, when we have millions of tasks in the task list?

0 投票
1 回答
38 浏览

java - 如何将 yaml 属性传递给 Uber Cadence cronSchedule 注释

我是 uber Cadence 的新手,正在尝试编写一个 cron 计划任务。Cadence 提供了一个 cronSchedule 注释(在线查找示例),它采用一个 cron 表达式字符串,用于在特定时间触发的方法。但是,我希望根据我们在 yml 文件中设置的内容来加载这个 cron 表达式。有什么办法吗?我目前只找到了这种@cronSchedule 注释方式来做到这一点。我还发现有一个 WorkflowOption 可以设置 cronSchedule。但是,不知道如何使用它来触发该方法。以下是当前代码。

如果没有办法做到这一点。有谁知道我们是否可以简单地@CronSchedule用 spring 替换这个注释@Scheduled?注释WorkflowMethod是否仍能按预期工作?

0 投票
1 回答
12 浏览

cadence-workflow - 在 K8 中设置 Cadence Workflow(Cadence 服务器)时面临的问题

我在 Kubernetes 环境中设置节奏时遇到问题,以下是详细信息

  • CADENCE_SERVER_IMAGE_VERSION:0.19.2
  • 所有 Cadence 组件都在单个 pod 中运行
  • 似乎 Ringpop 配置需要无头服务,但无头不适用于 Istio
  • 如果我只有一个 Pod,每件事都可以正常工作,但是一旦我创建了 2 个 Pod,它们就会开始为任务列表和分片而战,这就是我的问题是 Ringpop 配置:{ name: RINGPOP_SEEDS, value: 'api-gtp-cadence.api-gtp-cadence.svc.cluster.local:7933,api-gtp-cadence.api-gtp-cadence.svc.cluster.local:7934,api-gtp-cadence.api-gtp-cadence.svc.cluster.local:7935,api-gtp-cadence.api-gtp-cadence.svc.cluster.local:7939'