Skip to content

【任务发放】优化 solon-flow (有包含结构的)网关的流入流出架构,使不再需要记录栈和计数器 #377

@noear

Description

@noear

目前的处理方式,是在执行时:

按自然的线路去运行。当线路经过流入侧(拦栅)时,需要按流出时计数进行拦阻并只让最后一次通过。

优化方向:

  1. 添加 ChainBuilder 或 ChainDecl,用于申明 Chain
  2. Chain 的构建分为:申明(List 结构) 和 构建(部分 Tree 结构)2部分(或2阶段)。且构建后不允许再调整
  3. 构建时对 Chain 做预转换处理,把网关的“后续”节点,转换为“内部”结点。

示意:

//旧(所有元素并列,用线连接)
包容网关->a->b-包容网关

//新(部分网关,转为包裹关系。更利于运行)
包容网关(a->b)

//有了“包裹”关系后,就不需要栈记录和记数器了。

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions