GithubHelp home page GithubHelp logo

Comments (6)

vavi avatar vavi commented on September 28, 2024

是服务编排场景吗?

并行网关的允许扩展这几种属性: timeout="300" strategy="any" poolName="poolA" skipTimeoutExp="true" 使用方法详见源码里的 ServiceOrchestrationParallelGatewayTest

from smartengine.

caimoxuan avatar caimoxuan commented on September 28, 2024

是服务编排场景, 可能是我没描述清楚, 这里并行网关 在流程执行的时候, 使用的是遍历执行的模式(并行网关中的某一个节点异常则流程中断), 但是有的时候几个流程可以并行来降低总体rt, 然后我实现了ExecutorService, 使得并行网关使用线程池来并行执行; 但是我发现并行执行的话如果一个节点异常, 流程并不会中断;于是翻看了源码发现这里

ParalleGatewayBehiavior 这个里面执行的时候 executorService.invokeAll(tasks);

这里就只管执行了, 没有管他里面是否会出现异常

from smartengine.

vavi avatar vavi commented on September 28, 2024

嗯 你想要怎么处理里面的异常?

from smartengine.

caimoxuan avatar caimoxuan commented on September 28, 2024

我觉得简单的方式并行网关任意节点异常,整体流程失败, 返回流程异常中断流程;
通用性来说也可以让使用者定义异常处理策略 让使用者决定是否中断流程;

from smartengine.

vavi avatar vavi commented on September 28, 2024

嗯 这个我目前的建议是,业务使用方基于扩展点去修改吧,整体扩展成本还是蛮低的; 异常处理逻辑有点复杂,比较众口难调。

from smartengine.

caimoxuan avatar caimoxuan commented on September 28, 2024

好的 感谢

from smartengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.